IEEE-488 Reference
4-64
Line 10 Two commands in this program message; the first enables the CALC 1 calculation
and the second queries the programmed state.
Line 20 Addresses the Model 2001 to talk.
Line 30 Displays the state of CALC 1 (1; on).
:DATA?
:CALCulate[1]:DATA? Read CALC 1 result
Format
:calc:data?
Description
This query command is used to read the result of the CALC 1 calculation. After sending this
command and addressing the Model 2001 to talk, the CALC 1 reading will be sent to the com-
puter. If CALC 1 is disabled or NONE is selected, the “raw” reading will instead be read.
Programming example
10 OUTPUT 716; “:calc:data?”
20 ENTER 716; A$
30 PRINT A$
40 END
Line 10 Queries the CALC 1 reading.
Line 20 Addresses the Model 2001 to talk.
Line 30 Displays the CALC 1 reading.
:IMMediate
:CALCulate[1]:IMMediate Recalculate CALC 1
Format
:calc:imm
Query
:IMMediate? Perform calculation and read result
(equivalent to :CALCulate[1]:IMMediate; DATA?)
Short-form format: :calc:imm?
Response message: Result of calculation
Description
When you change the math calculation, the next instrument reading will reflect the new calcu-
lation (assuming CALC 1 math is enabled). If the instrument is not in a continuous measurement
mode (i.e. waiting for a manual trigger), the displayed reading will not update to the reflect the
new calculation until the next reading conversion occurs.
This action command allows you to reprocess the current input data to reflect a new calculation.
For example, assume the instrument is in a non-continuous measurement mode and requires a
manual trigger to cause the next reading conversion. Changing the calculation will not affect the
currently displayed reading. However, sending the :IMMediate command will reprocess that
displayed reading to reflect the new calculation. Note that sending the :IMMediate command
does not initiate a reading conversion.
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. The result of the calculation will be sent to the computer when the Model 2001
is addressed to talk.