Series 2600B System SourceMeter® instrument Reference Manual Section 9: TSP command reference
2600BS-901-01 Rev. F/August 2021 9-29
bufferVar.readings
This attribute contains the readings stored in a specified reading buffer.
Usage
reading = bufferVar.readings[N]
The value of the reading in the specified reading buffer
The reading buffer; can be a dynamically allocated user-defined buffer or a dedicated
reading 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
Details
The bufferVar.readings buffer recall attribute is like an array (a Lua table) of the readings stored
in the reading buffer. This array holds the same data that is returned when the reading buffer is
accessed directly; that is, rb[2] and rb.readings[2] access the same value.
For dedicated reading buffers, all buffer attributes are saved to nonvolatile memory only when the
reading buffer is saved to nonvolatile memory.
Example
print(smua.nvbuffer1.readings[1])
Output the first reading saved in
source-measure unit (SMU) channel A,
dedicated reading buffer 1.
Output:
8.81658e-08
Also see
bufferVar.measurefunctions (on page 9-25)
bufferVar.measureranges (on page 9-26)
bufferVar.n (on page 9-28)
bufferVar.sourcefunctions (on page 9-30)
bufferVar.sourceoutputstates (on page 9-31)
bufferVar.sourceranges (on page 9-31)
bufferVar.sourcevalues (on page 9-32)
bufferVar.statuses (on page 9-34)
bufferVar.timestamps (on page 9-36)
Reading buffers (on page 3-1)