Reading Out Measured Result Using *Trg Command - Agilent Technologies 4288A Programming Manual

1khz/1mhz capacitance meter
Table of Contents

Advertisement

Reading Out Measured Result
Reading Out Measured Result

Reading out measured result using *TRG command

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.
The readout procedure using the *TRG command is described below.
Step 1. Use the :TRIG:SOUR command on page 196 to set up the trigger mode to the GPIB
trigger (Bus).
Step 2. Execute the *TRG command.
Step 3. Read out the measured result. To repeat the measurement, repeat Steps 2 and 3.
Example 6-1 and Example 6-2 show sample programs using the *TRG command. Example
6-1 is for the ASCII transfer format and Example 6-2 is for the binary transfer format.
These programs are stored on the sample program disk under the filenames "trg_a.bas" and
"trg_b.bas."
These programs read out the measurement status, measured primary parameter result,
measured secondary parameter result, and comparator sorting result (when the comparator
function is ON) and then display this information.
The program of Example 6-1 is detailed below.
Line 60
Line 70
Lines 90 to 100
Lines 120 to 130
Lines 170 to 210
Line 230
Line 250
Lines 300 to 320
Line 340
Line 360
62
Sets the GPIB address.
Sets the data transfer format to the ASCII format.
Turns ON the trigger system continuous startup and sets the trigger
mode to the GPIB trigger.
Reads out the ON/OFF state of the comparator function and assigns it
to the Comp_flag variable.
After the trigger system state transitions to the trigger wait state,
triggers the instrument.
If the Comp_flag value is 1 (the comparator function is ON), reads out
the measurement status, measured primary parameter result, measured
secondary parameter result, and comparator sorting result.
If the Comp_flag value is not 1 (the comparator function is OFF),
reads out the measurement status, measured primary parameter result,
and measured secondary parameter result.
Displays the measurement status, measured primary parameter result,
and measured secondary parameter result.
If the Comp_flag value is 1 (the comparator function is ON), displays
the comparator sorting result.
If the Comp_flag value is not 1 (the comparator function is OFF),
displays "Comparator : OFF."
Chapter 6

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents