Model 2601B-PULSE System SourceMeter Instrument Reference Manual Section 11: TSP command reference
2601B-PULSE-901-01A April 2020 11-29
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 11-26)
bufferVar.measureranges (on page 11-27)
bufferVar.readings (on page 11-29)
bufferVar.sourcefunctions (on page 11-30)
bufferVar.sourceoutputstates (on page 11-31)
bufferVar.sourceranges (on page 11-32)
bufferVar.sourcevalues (on page 11-33)
bufferVar.statuses (on page 11-34)
bufferVar.timestamps (on page 11-37)
Reading buffers (on page 5-1)
smua.measure.overlappedY() (on page 11-205)
smua.measure.Y() (on page 11-209)
smua.nvbufferY (on page 11-211)
smua.trigger.measure.Y() (on page 11-251)
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.