Section 7: TSP command reference
Series 2600B System SourceMeter® Instrument Reference Manual
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
(on page 7-25)
(on page 7-26)
(on page 7-28)
(on page 7-29)
(on page 7-31)
(on page 7-32)
(on page 7-33)
(on page 7-231)
(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
Attribute (R)
Yes
Clearing the buffer
See
Details
Not applicable
Usage
reading
=
bufferVar
.readings[
N
]
reading
The value of the reading in the specified reading buffer
bufferVar
The reading buffer; can be a dynamically allocated user-defined buffer or a
dedicated reading buffer
N
The reading number (
1
to
bufferVar
.n
)
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.