
2606B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2606B-901-01 Rev. B / May 2018
7-29
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-29)
(on page 7-30)
(on page 7-31)
bufferVar.sourceranges
This attribute contains the source range that was used for readings stored in a specified reading buffer.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Clearing the buffer
See
Details
Not applicable
Usage
sourcerange
=
bufferVar
.sourceranges[
N
]
sourcerange
The source range used to acquire reading number
N
in the specified buffer
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 sourceranges buffer recall attribute is like an array (a Lua table) of full-scale range values for the
source range used when the measurement was made.
For dedicated reading buffers, all buffer attributes are saved to nonvolatile memory only when the
reading buffer is saved to nonvolatile memory.
Example 1
sourcerange = smua.nvbuffer1.sourceranges[1]
Store the source range that was used for the
first reading stored in dedicated reading
buffer 1.
Example 2
printbuffer(1, 6, smua.nvbuffer1.sourceranges)
Print the source ranges that were used for 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