Specifications

90 Chapter 6
Retrieving Measurement Results
Retrieving the Measurement Results for Measurement Parameters 1
through 4
Using the :FETC? or :DATA:FDAT{1-4}? command to retrieve
measurement results
These two commands are useful when you trigger the instrument without using an external
controller or when you need to perform a particular task between triggering and retrieval.
To retrieve measurement results using the :FETC? or :DATA:FDAT{1-4}? command,
follow these steps:
Step 1. Set the trigger source as necessary.
Step 2. Trigger the instrument using the method specific to the trigger source.
NOTE To trigger the instrument from an external controller, use the :TRIG command on page 308
instead.
Step 3. Issue the :FETC? or :DATA:FDAT{1-4}? command upon completion of measurement.
Step 4. Retrieve the measurement results. You can repeat steps 2 through 4 as needed.
Example 6-3 is a sample program that demonstrates the use of the :FETC? command. This
program is given the file name fetch.bas and is stored on the sample program disk.
This program checks the measurement conditions at run time, counts the data items to
retrieve, and then puts the instrument into trigger wait state. Finally, after the user presses
the
[Trigger] key on the front panel and the instrument completes the measurement cycle,
the program retrieves and displays the measurement results.
The program is described in detail below:
Lines 50 to 60 Sets the GPIB address and select code.
Line 70 Sets the data transfer format to ASCII.
Lines 110 to 160 Retrieves the display on/off (1/0) settings and parameter names for
measurement parameters 1 through 4 and stores the settings and names
into the variables Stat(1) through Stat(4) and Title$(1) through
Title$(4).
Lines 180 to 200 Retrieves the display on/off (0/1) setting for the result of test signal
current level monitoring and stores the setting into the Stat(5) variable;
stores the title (Imon) for current level monitoring into the Title$(5)
variable.
Lines 220 to 240 Retrieves the display on/off (0/1) setting for the result of test signal
voltage level monitoring and stores the setting into the Stat(6)
variable; stores the title (Vmon) for voltage level monitoring into the
Title$(6) variable.
Lines 260 to 280 Retrieves the on/off (0/1) setting for the result of R
dc
measurement and
stores the setting into the Stat(7) variable; stores the title (Rdc) for
R
dc
measurement into the Title$(7) variable.
Lines 300 to 310 Retrieves the on/off (0/1) setting of bin sorting and stores the setting
into the Bin_stat variable.
Lines 330 to 340 Retrieves the list/single-point (0/1) measurement setting and stores the
setting into the List_stat variables.