Section 14: TSP command reference
2470 High Voltage SourceMeter Instrument Reference Manual
14-28
2470-901-01 Rev. A /
May
2019
bufferVar.readings
This attribute contains the readings stored in a specified reading buffer.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Restore configuration
Instrument reset
Power cycle
Not applicable
Not applicable
Usage
reading
=
bufferVar
.readings[
N
]
reading
The value of the reading in the specified reading buffer
bufferVar
The name of the reading buffer, which may be a default buffer (
defbuffer1
or
defbuffer2
) or a user-defined buffer
N
The reading number
N
; can be any value from 1 to the number of readings in the
buffer; use the
bufferVar.
n
command to determine the number of readings in the
buffer
Example
reset()
testData = buffer.make(50)
trigger.model.load("SimpleLoop", 3, 0, testData)
trigger.model.initiate()
waitcomplete()
for x = 1, 3 do printbuffer(x, x, testData.readings, testData.sourcevalues,
testData.relativetimestamps) end
Create a reading buffer named
testData
, configure the instrument to make three measurements, and store
the readings in the buffer.
Print the three readings in
testData
, including the measurement, source value, and relative timestamp.
Output:
-9.6420389034124e-12, 2, 0
-4.5509945811872e-10, 2, 0.277194856
-9.1078204006445e-12, 2, 0.569614783
Also see
(on page 14-26)
(on page 14-9)
(on page 14-12)
(on page 14-18)
(on page 14-99)
(on page 14-100)
(on page 6-25)