
Model 2461 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2461-901-01 A/November 2015
8-95
bufferVar
.times
The time when the instrument made the readings. See
(on page 8-37).
bufferVar
.timestamps
The timestamps of readings stored in the reading buffer. See
(on page 8-38).
bufferVar
.relativetimestamps
The timestamps, in seconds, when each reading occurred
relative to the timestamp of reading buffer entry number 1. See
(on page 8-28).
bufferVar
.sourceunits
The units of measure of the source. See
(on page 8-32).
bufferVar
.seconds
The nonfractional seconds portion of the timestamp when the
reading was stored in UTC format. See
bufferVar
.fractionalseconds
The fractional portion of the timestamp (in seconds) of when
each reading occurred. See
bufferVar
.units
The unit of measure that is stored with readings in the reading
buffer. See
(on page 8-40).
Example 1
reset()
testData = buffer.make(200)
format.data = format.ASCII
format.asciiprecision = 6
trigger.model.load("SimpleLoop", 6, 0, testData)
trigger.model.initiate()
waitcomplete()
printbuffer(1, testData.n, testData.readings, testData.units,
testData.relativetimestamps)
Reset the instrument.
Set the data format and ASCII precision.
Use trigger model SimpleLoop to create a 6 count loop with no delays that stores data in the reading buffer
testBuffer
.
Start the trigger model, wait for the commands to complete, and output the readings.
Use of
testData.n
(
bufferVar
.n
) indicates that the instrument should output all readings in the reading
buffer. In this example,
testBuffer.n
equals 6.
Example of output data:
1.10458e-11, Amp DC, 0.00, 1.19908e-11, Amp DC, 1.01858e-01, 1.19908e-11, Amp DC,
2.03718e-01, 1.20325e-11, Amp DC, 3.05581e-01, 1.20603e-11, Amp DC, 4.07440e-01, 1.20325e-
11, Amp DC, 5.09299e-01
Example 2
for x = 1, testData.n do
printbuffer(x,x,testData, testData.units, testData.relativetimestamps)
end
Using the same buffer created in Example 1, output the readings, units and relative timestamps on a separate
line for each reading.
1.10458e-11, Amp DC, 0.00
1.19908e-11, Amp DC, 1.01858e-01
1.19908e-11, Amp DC, 2.03718e-01
1.20325e-11, Amp DC, 3.05581e-01
1.20603e-11, Amp DC, 4.07440e-01
1.20325e-11, Amp DC, 5.09299e-01