Interactive SourceMeter® Instrument Reference Manual Section 8:
2461-901-01 A/November 2015 8-27
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
Not applicable Not applicable
Usage
reading = bufferVar.readings[N]
The value of the reading in the specified reading buffer
The name of the reading buffer, which may be a default buffer (defbuffer1 or
) or a user-defined buffer
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
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
bufferVar.n (on page 8-26)
buffer.delete() (on page 8-11)
buffer.make() (on page 8-14)
bufferVar.clear() (on page 8-19)
print() (on page 8-92)
printbuffer() (on page 8-93)
Reading buffers (on page 3-2)
Remote buffer operation (on page 3-23)