Section 7: SCPI command reference
Model 2281S-20-6 DC Power Supply and Battery Simulator Reference Manual
7-178
077114601 / March 2019
:DATA[n]:CLEar:AUTO
This command enables or disables the autoclear feature for the buffer.
Type
Affected by
Where saved
Default value
Command and query
Power cycle
Not applicable
1 (ON)
Usage
:DATA[n]:CLEar:AUTO <state>
:DATA[n]:CLEar:AUTO?
[n]
Channel number: For single-channel instruments, the value is
1
<state>
Enable autoclear:
ON
or
1
Disable autoclear:
OFF
or
0
Details
With autoclear enabled, the buffer will automatically clear when the storage process starts. When
disabled, readings will append to old readings in the buffer until the buffer becomes full (2,500
readings) or the storage process is stopped.
Example
:DATA:CLE:AUTO ON
Enable autoclear for the buffer.
Also see
(on page 3-20)
:DATA[n]:DATA?
This query command returns all the readings from the buffer.
Type
Affected by
Where saved
Default value
Query only
Recall settings
Instrument reset
Power cycle
Not applicable
Not applicable
Usage
:DATA[n]:DATA? [<bufferElements>]
[n]
Channel number: For single-channel instruments, the value is
1
<bufferElements>
A list of elements in the buffer to print; if nothing is specified,
defaults are
READing
,
SOURce
,
UNIT
, and
RELative
; see
Details
for a list of options.
Details
Use
DATA:DATA?
to retrieve all readings that are stored in the buffer. You can send this command
even if the instrument is still storing readings. When
DATA:DATA?
is sent, it will return the readings
stored up to that point in time. Subsequent
DATA:DATA?
commands will not retrieve readings already
returned.