7: TSP command reference Series 2600B System SourceMeter® Instrument
7-28 2600BS-901-01 Rev. C / August 2016
Example
numberOfReadings = smua.nvbuffer1.n
print(numberOfReadings)
Reads the number of readings stored in
dedicated reading buffer 1 (source-measure
unit (SMU) channel A).
Output:
1.25000+02
The above output indicates that there are 125
readings stored in the buffer.
Also see
bufferVar.measurefunctions (on page 7-25)
bufferVar.measureranges (on page 7-26)
bufferVar.readings (on page 7-28)
bufferVar.sourcefunctions (on page 7-29)
bufferVar.sourceoutputstates (on page 7-30)
bufferVar.sourceranges (on page 7-31)
bufferVar.sourcevalues (on page 7-32)
bufferVar.statuses (on page 7-33)
bufferVar.timestamps (on page 7-35)
Reading buffers (on page 3-6)
smuX.measure.overlappedY() (on page 7-225)
smuX.measure.Y() (on page 7-229)
smuX.nvbufferY (on page 7-231)
smuX.trigger.measure.Y() (on page 7-264)
bufferVar.readings
This attribute contains the readings stored in a specified reading buffer.
Type TSP-Link accessible Affected by Where saved Default value
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
The reading number (
to bufferVar
)
Details
The 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.