
Section 7: TSP command reference
2606B System SourceMeter® Instrument Reference Manual
7-26
2606B-901-01 Rev. B / May 2018
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-23)
(on page 7-24)
(on page 7-26)
(on page 7-27)
(on page 7-29)
(on page 7-30)
(on page 7-31)
(on page 7-209)
(on page 7-238)
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
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
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.