Section 11: TSP command reference Model 2601B-PULSE System SourceMeter Instrument Reference Manual
11-30 2601B-PULSE-901-01A April 2020
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 11-26)
bufferVar.measureranges (on page 11-27)
bufferVar.n (on page 11-28)
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)
bufferVar.sourcefunctions
This attribute contains the source function that was being used when the readings were stored in a specified
reading buffer.
Usage
sourcefunction = bufferVar.sourcefunctions[N]
The source function used (Current or Voltage) to acquire reading number N in
the specified buffer
The reading buffer; can be a dynamically allocated buffer (user-defined), or a
dedicated reading buffer (such as smua.nvbuffer1)
The reading number (1 to bufferVar.n)
Details
The bufferVar.sourcefunctions buffer recall attribute is like an array (a Lua table) of strings
indicating the source function at the time of the measurement.
For dedicated reading buffers, all buffer attributes are saved to nonvolatile memory only when the
reading buffer is saved to nonvolatile memory.
Example 1
sourcefunction = smua.nvbuffer1.sourcefunctions[3]
print(sourcefunction)
Store the source function used
to make reading number 3 and
output the value.