Agilent Technologies 4288A Programming Manual page 41

1khz/1mhz capacitance meter
Table of Contents

Advertisement

Preparation for Accurate Measurement (Executing Compensation)
the measurement frequency to Freq.
2. Lines 600 to 620: Clears the status byte register, operation status
event register, and error queue.
3. Lines 640 to 650: Sets the branch destination of the SRQ interrupt
and enables the SRQ interrupt.
4. Lines 660 to 670: Executes the compensation data measurement
command and waits for the completion of the measurement.
5. Reads out the compensation data and assigns its values to the
Para1 and Para2 variables, respectively.
6. Line 790: Sets the Err_flag variable to 0.
7. Lines 820 to 840: If the value of Standard$ is "Open," calculates
the absolute value of the admittance from the Para1 and Para2
values. If the value is equal to or greater than Limit, sets Err_flag
to 1 again.
8. Lines 860 to 880: If the value of Standard$ is "Short," calculates
the absolute value of the impedance from the Para1 and Para2
values. If the value is equal to or greater than Limit, sets Err_flag
to 1 again.
9. Lines 900 to 1000: If the value of Standard$ is "Load", reads out
the LOAD compensation standard definition value, calculates the
absolute value of the impedance of the LOAD compensation
standard from the value, and assigns the result to the Zref variable.
Then calculates the absolute value of the impedance from the
Para1 and Para2 values. If the absolute value of the difference
between the value and Zref is equal to or greater than Limit, sets
Err_flag to 1 again.
10. Lines 1020 to 1050: If the value of Err_flag is 1, displays the
out-of-limit-range message and returns to Line 530.
Lines 1070 to 1090 Displays the end-of-measurement message and sets the measurement
frequency to Curr_freq and then returns 0 as the return value from the
sub-program.
Lines 1110 to 1130 This is the processing when a key other than the y key is pressed in
Line 550. Returns -1 as the return value from the sub-program.
The Save_comp_data sub-program of Lines 1160 to 1530 used to save the compensation
data is described below.
Lines 1240 to 1270 Reads out the setups of the cable length and frequency shift and sets
them to the Cable and F_shift variables, respectively.
Lines 1290 to 1410 Reads out the OPEN compensation data, SHORT compensation data,
LOAD compensation data, and LOAD compensation standard
definition value for both 1 kHz and 1 MHz and stores them to the
Open, Shor, Load, and Load_ref arrays.
Lines 1420 to 1430 Reads out the setup of the LOAD compensation standard definition
parameter and assigns it into the Load_para$ variable.
Lines 1450 to 1470 If there is a file whose name is File_name$, deletes it.
Lines 1480 to 1510 Creates a file naming it File_name$ and writes the data stored in
Chapter 4
Executing OPEN/SHORT/LOAD Compensation
39

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents