Section 7: SCPI command reference
Model 2281S-20-6 DC Power Supply and Battery Simulator Reference Manual
7-90
077114601 / March 2019
:CALCulate2:STATe
This command enables or disables the statistic calculations.
Type
Affected by
Where saved
Default value
Command and query
Recall settings
Instrument reset
Power cycle
Save settings
0 (OFF)
Usage
:CALCulate2:STATe <state>
:CALCulate2:STATe <state>,<channel>
:CALCulate2:STATe?
:CALCulate2:STATe? <channel>
<state>
Enable statistic calculations:
ON
or
1
Disable statistic calculations:
OFF
or
0
<channel>
The channel number (default value is CH1):
Channel 1: CH1
Channel 2: CH2
Example
*RST
:TRAC:CLE
:TRIG:COUN 10
:VOLT 6
:OUTP ON
:INIT
*OPC?
:CALC2:STATE ON
:CALC2:FUNC VOLT
:CALC2:FORM:ELEM "READ,UNIT,TST,RNUM"
:CALC2:FORM MIN,MAX
:CALC2:IMM?
:CALC2:FORM MIN,MAX,MEAN,PKPK,SDEV
:CALC2:IMM?
:CALC2:FORM MAX,SDEV
:CALC2:DATA?
Before the calculation, start the trigger model to take 10
readings.
The first
CALC2:IMM?
returns reading, units, timestamp
and reading number for MIN and MAX:
5.00V,06/25/2013
09:39:31.4455,0008RNDG#,5.00V,06/25/2013
09:39:30.7283,0001RNDG#
The second
CALC2:IMM?
only returns reading and units
for MIN, MAX, MEAN, PKPK and SDEV:
5.00V,5.00V,5.00V,1.360
893E-03V,4.204334E-04V
CALC2:DATA?
returns reading and units for MAX and
SDEV: 5.00V,4.204334E-04V
Also see
(on page 7-86)
(on page 7-88)