
Section 7: TSP command reference
2606B System SourceMeter® Instrument Reference Manual
7-30
2606B-901-01 Rev. B / May 2018
Also see
(on page 7-23)
(on page 7-24)
(on page 7-25)
(on page 7-26)
(on page 7-27)
(on page 7-30)
(on page 7-31)
bufferVar.sourcevalues
When enabled by the
bufferVar
.collectsourcevalues
attribute, this attribute contains the source levels
being output when readings in the reading buffer were acquired.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Clearing the buffer
See
Details
Not applicable
Usage
sourcevalue
=
bufferVar
.sourcevalues[
N
]
sourcevalue
The source's output value 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
If the
bufferVar
.collectsourcevalues
attribute is enabled before readings are taken, the
bufferVar
.sourcevalues
buffer recall attribute is like an array (a Lua table) of the sourced value
in effect at the time of the reading. Note that you can set the
bufferVar
.collectsourcevalues
attribute only if the affected reading buffer is empty. See
(on page 7-
20) for more detailed information.
For dedicated reading buffers, all buffer attributes are saved to nonvolatile memory only when the
reading buffer is saved to nonvolatile memory.
Example 1
sourcevalue = smua.nvbuffer1.sourcevalues[1]
Get the sourced value of the first reading
stored in dedicated reading buffer 1.
Example 2
printbuffer(1, 6, smua.nvbuffer1.sourcevalues)
Print the sourced value of the first 6 readings
stored in source-measure unit (SMU) A,
buffer 1.
Example output:
1.00000e-04, 1.00000e-04,
1.00000e-04, 1.00000e-04,
1.00000e-04, 1.00000e-04