Section 7: TSP command reference
2606B System SourceMeter® Instrument Reference Manual
7-28
2606B-901-01 Rev. B / May 2018
Example 2
printbuffer(1, 10, smua.nvbuffer1.sourcefunctions)
Print the source function used
for 10 readings stored in
dedicated reading buffer 1.
Example output:
Voltage, Voltage,
Voltage, Voltage,
Voltage, Voltage,
Voltage, Voltage,
Voltage, Voltage
Also see
(on page 7-23)
(on page 7-24)
(on page 7-25)
(on page 7-26)
(on page 7-29)
(on page 7-30)
(on page 7-31)
\
bufferVar.sourceoutputstates
This attribute indicates the state of the source output for readings that are stored in a specified buffer.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Clearing the buffer
See
Details
Not applicable
Usage
state
=
bufferVar
.sourceoutputstates[
N
]
state
The output state (
"Off"
or
"On"
) when reading
N
of the specified buffer was
acquired
bufferVar
The reading buffer; can be a dynamically allocated buffer (user-defined), or a
dedicated reading buffer (such as
smua.nvbuffer1
)
N
The reading number (
1
to
bufferVar
.n
)
Details
The
sourceoutputstates
buffer recall attribute is similar to an array (a Lua table) of strings. This
array indicates the state of the source output (
"Off"
or
"On"
) 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
printbuffer(1, 1, smua.nvbuffer1.sourceoutputstates)
Print the source output for the
first reading stored in dedicated
reading buffer 1.
Example output:
On