Specifications

94 Chapter 6
Retrieving Measurement Results
Retrieving the Measurement Results for Measurement Parameters 1
through 4
Example 6-4 is a sample program that demonstrates the use of the :DATA:FDAT{1-4}?
command. This program is given the file name data.bas and is stored on the sample
program disk.
The sample program retrieves and displays the measurement results for parameters 1 and 2
and the result of test signal current level monitoring when the instrument receives an
external trigger and completes the measurement cycle. The program is described in detail
below:
Lines 40 to 50 Sets the GPIB address and select code.
Line 60 Sets the Point variable to the number of measurement points for
single-point measurement.
Line 70 Sets the data transfer format to ASCII.
Lines 90 to 120 Retrieves the parameter names of measurement parameters 1 and 2
and stores the names into the Para1$ and Para2$ variables,
respectively.
Lines 140 to 150 Instructs the instrument to perform single-point measurement at the
point identified by the Point variable.
Lines 190 to 210 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 250 to 310 Instructs the instrument to generate an SRQ upon completion of
measurement and clears the status byte register and operation status
event register.
Lines 350 to 360 Sets the branch target for an SRQ interrupt to enable SRQ interrupts.
Lines 370 to 380 Prompts the user to input an external trigger. The program waits until
the instrument receives an external trigger and completes the
measurement cycle.
Lines 400 to 450 Retrieves the measurement results for parameters 1 and 2 and the
result of test signal current level monitoring and stores the data into the
Res1, Res2, and Imon variables, respectively.
Lines 490 to 500 Displays the measurement results.