Model 2601B-PULSE System SourceMeter Instrument Reference Manual Section 11: TSP command reference
2601B-PULSE-901-01A April 2020 11-33
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
Also see
bufferVar.measurefunctions (on page 11-26)
bufferVar.measureranges (on page 11-27)
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.sourcevalues (on page 11-33)
bufferVar.statuses (on page 11-34)
bufferVar.timestamps (on page 11-37)
Reading buffers (on page 5-1)
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.
Usage
sourcevalue = bufferVar.sourcevalues[N]
The output value of the source when reading N of the specified buffer was acquired
The reading buffer; can be a dynamically allocated buffer (user-defined), or a
dedicated reading buffer (such as smua.nvbuffer1)
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 bufferVar.collectsourcevalues (on page
11-23) 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.