IEEE-488 Reference
3-65
3.13.2
:CALCulate2
This Calculate subsystem is used to configure and control CALC 2 operations on readings
stored in the buffer.
:FORMat <name>
:CALCulate2:FORMat <name> Specify CALC 2 format
Parameters
<name> = MEAN
Mean value of readings in buffer
SDEVStandard deviation of readings in buffer
MAXLargest reading in buffer
MINLowest reading in buffer
PKPKPeak-to-peak value of readings in buffer
NONENo calculation
Query
:FORMat? Query programmed math format
Description
This command is used to specify the format for the CALC 2 math calculation. The calculation
operations for CALC 2 use data stored in the buffer.
With NONE selected, no CALC 2 calculation will be performed. With one of the other formats
selected and CALC 2 enabled (see :STATe), the calculation is performed every time the :IMMe-
diate or :IMMediate? command is executed.
Details on MEAN, SDEV, MAX and MIN are provided in paragraph 2.16.3.
PKPK = MAX - MIN
where
MAX is the largest reading in the buffer
MIN is the lowest reading in the buffer
:STATe <b>
:CALCulate2:STATe <b> Control CALC 2
Parameters
<b> =
0 or OFF
Disable CALC 2 calculation
1 or ONEnable CALC 2 calculation
Query
:STATe? Query state (on or off) of CALC 2
Description
This command is used to enable or disable the CALC 2 calculation. When enabled, the selected
CALC 2 format will be calculated when the :IMMediate or :IMMediate? command is executed.
:IMMediate
:CALCulate2:IMMediate Perform CALC 2
Query
:IMMediate?
Perform calculation and read result (equivalent to :CALCulate2:IMMediate;
DATA?)
Description
The :IMMediate command is used to perform the selected CALC 2 operation on the readings in
the buffer (assuming CALC 2 is enabled; see :STATe). After performing the calculation, the re-
sult can be read by using the :CALCulate2:DATA? query command.