User manual

IEEE-488 Reference
2001-900-01 Rev. K / August 2010 4-67
Line 10 Selects the MAX math format.
Line 20 Performs the math operation and queries the result.
Line 30 Addresses Model 2001 to talk.
Line 40 Displays the largest (MAX) reading in the buffer.
:DATA?
:CALCulate2:DATA? Read CALC 2 result
Format :calc2:data?
Description This query command is used to read the result of the CALC 2 operation. After sending this command and
addressing the Model 2001 to talk, the CALC 2 reading will be sent to the computer. If CALC 2 is dis-
abled 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.
Programming example 10 OUTPUT 716; “:calc2:data?”
20 ENTER 716; A$
30 PRINT A$
40 END
Line 10 Queries the CALC 2 reading.
Line 20 Addresses the Model 2001 to talk.
Line 30 Displays the CALC 2 reading.
4.13.3 :CALCulate3
This Calculate subsystem is used to configure and control the limit tests (LIMIT 1 test and LIMIT 2 test).
Limits are tested in the following sequence:
1. Low Limit 1
2. High Limit 1
3. Low Limit 2
4. High Limit 2
The first failure in the test sequence determines the digital pattern that is applied to the output port. For
example, if the upper limit for LIMIT 1 (High Limit 1) fails, the programmed digital pattern for that limit
is applied to the output port. A failure in the rest of the test sequence will not change the digital pattern
to the output port.
If all limits in the test sequence pass, then the programmed “pass” digital pattern is instead applied to the
output port.
Note that if a limit test is disabled, then those limits are simply not tested.