Section 11: TSP command reference Model 2601B-PULSE System SourceMeter Instrument Reference Manual
11-28 2601B-PULSE-901-01A April 2020
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.
Example 1
measurerange = smua.nvbuffer1.measureranges[1]
Store the measure range that was used to make reading number 1.
Example 2
printbuffer(1, 10, smua.nvbuffer1.measureranges)
Print the range values that were used for the first 10 readings saved in dedicated reading buffer 1.
Example output:
1.00000e-07, 1.00000e-07,
1.00000e-07, 1.00000e-07,
1.00000e-07, 1.00000e-07,
1.00000e-07, 1.00000e-07,
1.00000e-07, 1.00000e-07
Also see
bufferVar.measurefunctions (on page 11-26)
bufferVar.n (on page 11-28)
bufferVar.readings (on page 11-29)
bufferVar.sourcefunctions (on page 11-30)
bufferVar.sourceoutputstates (on page 11-31)
bufferVar.sourceranges (on page 11-32)
bufferVar.sourcevalues (on page 11-33)
bufferVar.statuses (on page 11-34)
bufferVar.timestamps (on page 11-37)
Reading buffers (on page 5-1)
bufferVar.n
This attribute contains the number of readings in the buffer.
Usage
numberOfReadings = bufferVar.n
The number of readings stored in the buffer
The reading buffer; can be a dynamically allocated user-defined buffer or a
dedicated reading buffer
Details
This read-only attribute contains the number of readings presently stored in the buffer.
For dedicated reading buffers, all buffer attributes are saved to nonvolatile memory only when the
reading buffer is saved to nonvolatile memory.