
Model 2461 Interactive SourceMeter® Instrument Reference Manual
Section 6: SCPI command reference
2461-901-01 A/November 2015
6-171
Example
TRACe:MAKE "testData", 100
SENSe:COUNt 5
MEASure:CURRent:DC? "testData", READ, REL
TRACe:SAVE "/usb1/myData5.csv", "testData"
TRACe:CLEAr
MEASure:CURRent:DC?
TRACe:SAVE:APPend "/usb1/myData5.csv", "defbuffer1"
MEASure:CURRent:DC? "testData"
TRACe:SAVE:APPend "/usb1/myData5.csv", "testData", RAW, 6, 10
Create a buffer called
testData
.
Make 5 readings and return the fifth point, which will contain the reading, relative timestamp, and source value.
Store the buffer data in the
myData5.csv
file.
Clear
defbuffer1
.
Make 5 readings, store them in
defbuffer1
, and return the fifth reading.
Append all the readings stored in
defbuffer1
to the
myData5.csv
file.
Take 5 more readings, store them in
testData
, and return the fifth reading.
Append all the readings stored in positions 6 through 10
testData
to the
myData5.csv
file using raw
timestamps.
Also see
(on page 3-2)
(on page 3-23)
(on page 6-165)
:TRACe:STATistics:AVERage?
This command returns the average of all readings in the buffer.
Type
Affected by
Where saved
Default value
Query only
Recall settings
Instrument reset
Power cycle
Not applicable
Not applicable
Usage
:TRACe:STATistics:AVERage?
:TRACe:STATistics:AVERage? "<bufferName>"
<bufferName>
A string that indicates the reading buffer; the default buffers
(
defbuffer1
or
defbuffer2
) or the name of a user-defined buffer; if no
buffer is specified,
defbuffer1
is used