Specifications

86 Chapter 6
Retrieving Measurement Results
Retrieving the Measurement Results for Measurement Parameters 1
through 4
Using the *TRG command to retrieve measurement results
This command actually performs two tasks: it triggers the instrument and returns the
results. It is useful, for example, when you want to retrieve measurement results
immediately after triggering the instrument from an external controller.
To retrieve measurement results using the *TRG command, follow these steps:
Step 1. Issue the :TRIG:SOUR command on page 310 to set the trigger source to “Bus.”
Step 2. Issue the *TRG command (or the TRIGGER command of HP BASIC).
Step 3. Retrieve the measurement results. You can repeat steps 2 and 3 as needed.
Example 6-1 and Example 6-2 are sample programs that demonstrates the use of the *TRG
command. Example 6-1 uses the ASCII format, and Example 6-2 uses the binary format.
These programs are given the file names trg.bas and trg_real.bas and are stored on the
sample program disk.
These sample programs retrieve and display the measurement status as well as the
measurement results for parameters 1 and 2 and the result of test signal current level
monitoring.
Example 6-1 is described in detail below:
Line 40 Sets the GPIB address.
Line 50 Sets the Point variable to the number of measurement points for
single-point measurement.
Line 60 Sets the data transfer format to ASCII.
Lines 80 to 130 Instructs the instrument to show the results for measurement
parameters 1 and 2 as well as the result of test signal current level
monitoring while hiding the measurement results of measurement
parameters 3 and 4 as well as the result of test signal voltage level
monitoring.
Lines 150 to 180 Retrieves the parameter names of measurement parameters 1 and 2
and stores the names into the Para1$ and Para2$ variables,
respectively.
Lines 200 to 210 Instructs the instrument to perform single-point measurement at the
point identified by the Point variable.
Lines 220 to 230 Turns off the bin sorting and Rdc measurement functions.
Lines 270 to 280 Sets the trigger source to GPIB/LAN trigger and turns on the
continuous activation of the trigger system.
Lines 320 to 360 Triggers the instrument after the trigger system is put into trigger wait
state.
Line 370 Retrieves the measurement status, the measurement results for
parameters 1 and 2, and the result of test signal current level
monitoring and then stores the data into the Stat, Res1, Res2, and Imon
variables.
Lines 410 to 420 Displays the measurement results.