System SourceMeter® Instrument Reference Manual Section 7: TSP comma
2600BS-901-01 Rev. C / August 2016 7-29
Example
print(smua.nvbuffer1.readings[1])
Output the first reading saved in
source-measure unit (SMU) channel A,
dedicated reading buffer 1.
Output:
Also see
bufferVar.measurefunctions (on page 7-25)
bufferVar.measureranges (on page 7-26)
bufferVar.n (on page 7-27)
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)
bufferVar.sourcefunctions
This attribute contains the source function that was being used when the readings were stored in a specified
reading buffer.
Type TSP-Link accessible Affected by Where saved Default value
Attribute (R) Yes Clearing the buffer See
Not applicable
Usage
sourcefunction = bufferVar.sourcefunctions[N]
The source function used ("current" or "voltage") to acquire reading number N
The reading buffer; can be a dynamically allocated buffer (user-defined), or a
dedicated reading buffer (such as
)
bufferVar
Details
The 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]
Store the source function used
to make reading number 3.