Specifications
Chapter 4 57
Preparing for Accurate Measurement
Running the Compensation Process
4. Preparing for Accurate
Measurement
the test fixture.
Line 850 Passes control to a subprogram named Set_comp_kit to configure the
compensation kit.
Lines 880 to 920 Passes control to a subprogram named FNCompen, which measures
the OPEN and SHORT data.
Lines 940 to 960 Calculates the compensation coefficients and turns on the
compensation function.
Line 980 Displays a closing message.
Lines 1020 to 1050 This statement block is executed if an error occurs in retrieving the
calibration coefficients from the file.
The FNCompen subprogram in lines 1110 to 1690, which measures the data for calculating
the compensation coefficients, is described below.
Lines 1150 to 1160 Retrieves the current trigger source setting, and stores the setting into
the Trig_sour$ variable.
Lines 1170 to 1190 After measurement is stopped (the trigger system is stopped), sets the
trigger source to GPIB/LAN trigger and turns on the continuous
activation of the trigger system.
Lines 1200 to 1230 Configures the instrument to generate an SRQ upon completion of
measurement.
Lines 1250 to 1260 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 1280 to 1300 Clears the status byte register and operation status event register.
Lines 1310 to 1320 Sets the branch target for an SRQ interrupt to enable SRQ interrupts.
Lines 1330 to 1380 Sends the commands that measure the standard identified by
Standard$.
Lines 1390 to 1410 Triggers the instrument, and waits until the measurement cycle
finishes.
Line 1430 Sets the Err_flag variable to 0.
Lines 1440 to 1550 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 again.
Line 1570 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 1590 to 1600 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 1620 to 1630 Finally, The subprogram returns 0 after restoring the original trigger
source by changing the trigger source to Trig_sour$.
Lines 1650 to 1670 If the key the user pressed in line 1260 is not the y key, this statement
block is executed and the subprogram returns -1.