IEEE-488 Reference
3-66
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 re-
sult is queried.
Program fragment
This example assumes that there are readings stored in the buffer and CALC 2 is enabled:
PRINT #1, "output 27; :calc2:form max"
' Select MAX format
PRINT #1, "output 27; :calc2:imm?"
' Perform math and query
' result
PRINT #1, "enter 27"
' Get response message from
6517A
:DATA?
:CALCulate2:DATA? Read CALC 2 result
Description
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.