Specifications
Chapter 4 43
Preparing for Accurate Measurement
Performing Calibration
4. Preparing for Accurate
Measurement
Lines 630 to 740 Retrieves the calibration coefficients for impedance measurement, A1,
B1, C1, A2, B2, and C2, and then stores them into the arrays
Cal_coef_a1, Cal_coef_b1, Cal_coef_c1, Cal_coef_a2, Cal_coef_b2,
and Cal_coef_c2, respectively.
Lines 760 to 810 Retrieves the calibration coefficients for R
dc
measurement, A, B, and
C, and then stores them into the Cal_coef_dc array, retaining the
original order.
Lines 860 to 880 If File$ matches the name of an existing file, deletes the file.
Lines 890 to 920 Creates a new file using the file name identified by the File$ variable
and saves the data from the arrays Cal_coef_a1, Cal_coef_b1,
Cal_coef_c1, Cal_coef_a2, Cal_coef_b2, Cal_coef_c2, and
Cal_coef_dc to the new file.
Lines 940 to 970 Terminates program after displaying a closing message along with the
name of the file that contains the calibration coefficients.
The FNCal subprogram in lines 1010 to 1680, which measures the data for calculating the
calibration coefficients, is described below.
Lines 1050 to 1060 Retrieves the current trigger source setting and stores the setting into
the Trig_sour$ variable.
Lines 1070 to 1090 After measurement is stopped (the trigger system is stopped), the
program sets the trigger source to GPIB/LAN trigger and turns on the
continuous activation of the trigger system.
Lines 1100 to 1130 Configures the instrument to generate an SRQ upon completion of
measurement.
Lines 1150 to 1160 Prompts the user to set up the connection for measuring the standard
identified by Standard$ and waits until the user presses the y key
followed by the return key.
Lines 1180 to 1200 Clears the status byte register and operation status event register.
Lines 1210 to 1220 Sets the branch target for an SRQ interrupt to enable SRQ interrupts.
Lines 1230 to 1320 Sends the commands to measure the standard identified by Standard$.
Lines 1330 to 1350 Triggers the instrument and waits until the measurement cycle
finishes.
Line 1370 Sets the Err_flag variable to 0.
Lines 1380 to 1540 When the standard is OPEN, SHORT, or LOAD, the subprogram
checks whether the R
dc
value falls within the limit range. If the limit
range is exceeded, it sets the Err_flag variable to 1.
Line 1560 If Err_flag is 0, which means that the R
dc
value is within the limit
range, the subprogram notifies the user of successful measurement.
Lines 1580 to 1590 If Err_flag is 1, which means that the R
dc
value is not within the limit
range, the subprogram notifies the user of failed measurement and
returns to the line where it starts measuring the standard.
Lines 1610 to 1620 Finally, the subprogram returns 0 after restoring the original trigger
source by changing the trigger source to Trig_sour$.
Lines 1640 to 1660 If the key the user pressed in line 1160 is not the y key, this statement
block is executed and the subprogram returns -1.