System SourceMeter® Instrument Reference Manual Section 7:
2600BS-901-01 Rev. B / May 2013 7-29
Example 2
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,
Also see
bufferVar.measurefunctions (on page 7-22)
bufferVar.measureranges (on page 7-23)
bufferVar.n (on page 7-24)
bufferVar.readings (on page 7-25)
bufferVar.sourcefunctions (on page 7-26)
bufferVar.sourceoutputstates (on page 7-27)
bufferVar.sourcevalues (on page 7-29)
bufferVar.statuses (on page 7-30)
bufferVar.timestamps (on page 7-32)
Reading buffers (on page 3-6)
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
Usage
sourcevalue = bufferVar.sourcevalues[N]
The source's output value 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 7-19
) 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 source-measure unit (SMU) A,
dedicated reading buffer 1.