SRQ
236 Chapter 6 Command Reference
The number parameter is the value to be placed in the register.
Default number = last reading.
Power-on number = see above listing.
Remarks • You can use the SMATH command to place a number into one of the registers
that store readings (UPPER, LOWER, etc.); however, that value will be replaced
with a reading if the corresponding math function is enabled (e.g. STATS).
• You cannot use -1 (minus 1) to default the number parameter. If you specify -1,
you will actually write -1 to the register.
• Related Commands: MATH, MMATH, RMATH
Examples OUTPUT 722;"SMATH 11,1E-3" !PLACES "1E-3" IN THE SCALE REGISTER
In the following program, lines 10 and 20 configure for a resistance measurement.
Line 30 triggers the resistance measurement. Line 40 defaults the number
parameter causing the resistance reading to be stored in the RES register. Line 50
instructs the operator to connect the voltage source to the multimeter. Line 80
enables the DBM math operation. This program displays the power delivered to
the resistance in DB (result of the DBM math operation).
10 OUTPUT 722;"PRESET NORM" !TARM AUTO, TRIG SYN, NRDGS 1,AUTO
20 OUTPUT 722;"OHM" !SELECTS 2-WIRE OHMS
30 OUTPUT 722;"TRIG SGL" !TRIGGERS ONCE
40 OUTPUT 722;"SMATH RES" !PLACES READING IN RES REGISTER
50 DISP "CONNECT SOURCE; PRESS CONT"!OPERATOR PROMPT
60 PAUSE !SUSPENDS PROGRAM EXECUTION
70 OUTPUT 722;"ACV" !SELECTS AC VOLTAGE
80 OUTPUT 722;"MATH DBM" !ENABLES DBM MATH OPERATION
90 OUTPUT 722;"TRIG AUTO" !TRIGGERS AUTOMATICALLY
100 END
SRQ
Service Request. Sets bit 2 in the multimeter's status register. If bit 2 is enabled
to assert SRQ (RQS 4 command), executing the SRQ command will set the GPIB
SRQ line.
Syntax SRQ
• Related Commands: CSB, EXTOUT, RQS, SPOLL (GPIB command), STB?
Example 10 OUTPUT 722;"RQS 4" !ENABLE STATUS REGISTER BIT 2 TO ASSERT SRQ
20 OUTPUT 722;"SRQ" !SET BIT 2, ASSERT SRQ
30 END