Specifications

Chapter 6 99
Retrieving Measurement Results
Retrieving the Monitored Values of Test Signal Levels
6. Retrieving Measurement
Results
Retrieving the Monitored Values of Test Signal Levels
To retrieve only the monitored values of test signal levels, use the following commands:
:DATA:IMON? on page 263
:DATA:VMON? on page 267
As described in “Retrieving the Measurement Results for Measurement Parameters 1
through 4” on page 85, you can also use the following three commands to retrieve the
monitoring results along with other data such as the measurement results for measurement
parameters 1 through 4:
*TRG on page 208
:FETC? on page 280
:READ? on page 293
Example 6-6 is a sample program that demonstrates the use of the :DATA:IMON? and
:DATA:VMON? commands. This program is given the file name lvl_mon.bas and is
stored on the sample program disk.
The sample program retrieves and displays the test signal current and voltage levels
monitored during the last measurement cycle.
The program is described in detail below:
Line 30 Sets the GPIB address.
Lines 50 to 60 Retrieves the list/single-point (0/1) measurement setting and stores the
setting into the List_stat variables.
Lines 80 to 90 If list measurement is specified (List_stat variable = 1), the program
retrieves the number of measurement points and stores the data into
the Nop variable.
Line 110 If single-point measurement is specified (List_stat is not equal to 1),
the program stores 1 into the Nop variable.
Line 130 Resizes the I_mon and V_mon arrays based on the value of the Nop
variable.
Line 150 Sets the data transfer format to ASCII.
Lines 160 to 170 Reads the test signal current level and stores it into the I_mon array.
Lines 180 to 190 Reads the test signal voltage level and stores it into the V_mon array.
Lines 230 to 320 Converts the monitored current and voltage levels into the
corresponding mA and mV values and displays them on screen.