Specifications
96 Chapter 6
Retrieving Measurement Results
Retrieving the Measurement Results for Measurement Parameters 1
through 4
Using the :READ? command to retrieve measurement results
This command retrieves the measurement results synchronously with the transition from
trigger wait state to end of measurement, without detecting trigger timing in the program. It
is useful, for example, when you want to trigger the instrument from an external device,
such as a handler, and immediately pass the measurement results to an external controller.
To retrieve measurement results using the :READ? command, follow these steps:
Step 1. Issue the :TRIG:SOUR command to set the trigger source to Internal, External or Manual
trigger.
Step 2. Issue the :READ? command.
Step 3. Trigger the instrument using the method specific to the trigger source.
Step 4. Retrieve the measurement results. You can repeat steps 2 through 4 as needed.
Example 6-5 shows a sample program. This program is given the file name read.bas and is
stored on the sample program disk.
The sample program retrieves and displays the measurement status, 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:
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 After measurement is stopped (the trigger system is stopped), the
program sets the trigger source to External trigger.
Lines 320 to 330 After issuing the :READ? command, the program prompts the user to
input an external trigger. The program waits until the instrument
receives an external trigger and completes the measurement cycle.
Line 340 Retrieves the measurement status, the measurement results for
parameters 1 and 2, and the result of test signal current level
monitoring, then stores the data into the Stat, Res1, Res2, and Imon
variables, respectively.
Lines 380 to 390 Displays the measurement results.