Model 2281S-20-6 DC Power Supply and Battery Simulator Reference Manual
Section 7: SCPI command reference
077114601 / March 2019
7-87
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-88)
:CALCulate2:FUNCtion
This command specifies which buffer data to use with statistic operations.
Type
Affected by
Where saved
Default value
Command and query
Power cycle
Instrument reset
Recall settings
Not applicable
CURR
Usage
:CALCulate2:FUNCtion <function>
:CALCulate2:FUNCtion <function>,<channel>
:CALCulate2:FUNCtion?
:CALCulate2:FUNCtion? <channel>
<function>
CURRent
: Apply statistic operations to current data only.
VOLTage
: Apply statistic operations to voltage data only.
<channel>
The channel number (default value is CH1):
Channel 1: CH1
Channel 2: CH2
Details
This command allows you to select specific data in the buffer to use with statistic operations. For
example, if you select
CURRent
, the statistic operations only apply to current values. Sending the
:CALCulate2:IMMediate?
command only returns the statistic result of current value.