IEEE-488 Reference
3-71
An alternate way to perform the calculation and read the result is by using the query form of the
command (:IMMediate?). When this command is sent, the calculation is performed and the
result is queried.
This example assumes that there are readings stored in the buffer and CALC 2 is enabled:
PRINT #1, "output 16; :calc2:form max" ' Select MAX format
PRINT #1, "output 16; :calc2:imm?" ' Perform math and query result
PRINT #1, "enter 16" ' Get response message from 2002
:DATA?
:CALCulate2:DATA? Read CALC 2 result
This query command is used to read the result of the CALC 2 operation. If CALC 2 is disabled
or NONE is selected, the “raw” reading will instead be read.
Note that this command does not initiate a calculation. This command is used to simply read the
result of the last calculation.
PRINT #1, "output 16; :calc2:data?" ' Query CALC2 reading
PRINT #1, "enter 16" ' Get response message from 2002
:CALCulate3
This Calculate subsystem is used to configure and control the limit tests (LIMIT 1 test and LIM-
IT 2 test). See paragraph 2.12.5 for details on limit tests.
[:DATA] <n>
:CALCulate3:LIMit[1]:UPPer[:DATA] <n> Specify upper LIMIT 1
:CALCulate3:LIMit[1]:LOWer[:DATA] <n> Specify lower LIMIT 1
:CALCulate3:LIMit2:UPPer[:DATA] <n> Specify upper LIMIT 2
:CALCulate3:LIMit2:LOWer[:DATA] <n> Specify lower LIMIT 2
<n> = -9.999999e35 to +9.999999e35 Specify limit value
DEFault Set specified upper limit to 1
Set specified lower limit to -1
MINimum Set specified limit to -9.999999e35
MAXimum Set specified limit to +9.999999e35
:UPPer? Query specified upper limit
:UPPer? DEFault Query *RST default upper limit
:UPPer? MINimum Query lowest allowable upper limit
:UPPer? MAXimum Query largest allowable upper limit
:LOWer? Query specified lower limit
:LOWer? DEFault Query *RST default lower limit
:LOWer? MINimum Query lowest allowable lower limit
:LOWer? MAXimum Query largest allowable lower limit
These commands are used to set the upper and lower limits for LIMIT 1 and LIMIT 2. The
actual limit depends on which measurement function is currently selected. For example, a limit
value of 1 is 1V for the volts functions (DCV or ACV), 1A for the current functions (DCI or
Program fragment
Description
Program fragment
3.12.3
Parameters
Query
Description