Specifications

102 Chapter 6
Retrieving Measurement Results
Retrieving the Results of Rdc Measurement
Sample program
Example 6-7 shows a sample program. This program is given the file name rdc.bas and is
stored on the sample program disk.
The sample program sets the limit range for R
dc
measurement, turns on the R
dc
measurement function, and then puts the instrument into trigger wait state. Finally, when
the user presses the
[Trigger] key on the front panel and the instrument completes the
measurement cycle, the program retrieves and displays the R
dc
measurement and limit test
results.
The program is described in detail below:
Lines 30 to 40 Sets the GPIB address and select code.
Lines 50 to 60 Stores the upper and lower limits for R
dc
measurement into the L_lim
and U_lim variables.
Line 70 Sets the data transfer format to ASCII.
Line 110 Sets the limit range for R
dc
measurement values to the range between
L_lim and U_lim
Lines 120 to 130 Turns on the bin sorting and R
dc
measurement functions.
Lines 170 to 190 After measurement is stopped (the trigger system is stopped), the
program sets the trigger source to External trigger and turns on the
continuous activation of the trigger system.
Lines 230 to 290 Instructs the instrument to generate an SRQ upon completion of
measurement and clears the status byte register and operation status
event register.
Lines 330 to 340 Sets the branch target for an SRQ interrupt to enable SRQ interrupts.
Lines 350 to 360 Prompts the user to press the
[Trigger] key. The program waits until
the user presses the
[Trigger] key and the instrument completes the
measurement cycle.
Lines 380 to 390 Retrieves the R
dc
measurement result and stores it into the Rdc
variable.
Lines 400 to 410 Retrieves the R
dc
measurement limit test result and stores it into the
Rdc_test variable.
Lines 450 to 500 Displays the R
dc
measurement value as well as the R
dc
measurement
limit test results.