Download Section 1 - VTI Instruments
Transcript
www.vxitech.com 3.66 Set SumX SumXX SumY SumXY = = = = SumX + scount SumXX + scount2 SumY + frequency(phase) SumXY + scount*frequency(phase) 3.67 If phase = 359, then set phase = -1. 3.68 If phase = phasestop, then set phase = 359. 3.69 Repeat steps 3.66 through 3.68 until phase = 359. 3.70 Set scount = scount – 1. 3.71 Calculate the Least Square Fit for the current data using the following equations: M0 = (scount × SumXY ) − (SumX × SumY ) (scount × SumXX ) − (SumX × SumX ) , B0 = (SumY × SumXX ) − (SumX × SumXY ) (scount × SumXX ) − (SumX × SumX ) 3.72 If M0 > -0.000001 and M0 < 0.000001, then set done = 1. 3.73 If done = 0 and M0 ≤ 0, then set CALSTOP = CALSTOP + 5e-16, CALSTAR = CALSTAR - 5e-16. 3.74 If done = 0 and M0 > 0 then set CALSTOP = CALSTOP - 5e-16, CALSTAR = CALSTAR + 5e-16. 3.75 Set phase = phasestart. 3.76 Calculate the frequency using the new CALSTOP using the following equation: Freq(phase) = XCNTR(phase) ((YCNTR(phase) − 1) × 0.0000001) + (TECA(phase) × CALTAR ) − (TECB(phase) × CALSTOP) + (CALOFFS) 3.77 If phase = 359 then set phase = -1. 3.78 If phase = phasestop then set phase = 359. 3.79 Repeat steps 3.76 through 3.78 until phase = 359. 3.80 Set Done Counter Freqsum Freqsumplateau = = = = 0 0 0 SumXY + scount*frequency(phase) 3.81 Set phase = phasestop + 1. 3.82 Calculate the frequency of the plateau: Freq(phase) = XCNTR(phase) ((YCNTR(phase) − 1) × 0.0000001) + (TECA(phase) × CALTAR ) − (TECB(phase) × CALSTOP ) + (CALOFFS) 3.83 Set freqsumplateau = freqsumplateau + frequency(phase). VM2164 Calibration and Verification 171