
Section 7: TSP command reference
2606B System SourceMeter® Instrument Reference Manual
7-24
2606B-901-01 Rev. B / May 2018
For dedicated reading buffers, all buffer attributes are saved to nonvolatile memory only when the
reading buffer is saved to nonvolatile memory.
Example 1
measurefunction = smua.nvbuffer1.measurefunctions[5]
Store the measure function used to make reading number 5.
Example 2
printbuffer(1, 5, smua.nvbuffer1.measurefunctions)
Print the measurement function that was used to measure the first five readings saved in dedicated reading
buffer 1.
Example output:
Current, Current,
Current, Current,
Current
Also see
(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.measureranges
This attribute contains the measurement range values that were used for readings 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
measurerange
=
bufferVar
.measureranges[
N
]
measurerange
The measurement 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
measureranges
buffer recall attribute is like an array (a Lua table) of full-scale range values for
the measure 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.