High Voltage SourceMeter Instrument Reference Manual Section 14:
2470-901-01 Rev. A / May 2019 14-35
bufferVar.sourcevalues
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
Attribute (R) Yes Restore configuration
Instrument reset
Not applicable Not applicable
Usage
sourceValue = bufferVar.sourcevalues[N]
The output value of the source when reading N of the specified buffer was acquired
The name of the reading buffer, which may be a default buffer (
defbuffer1
) or a user-defined buffer
N
; can be any value from 1 to the number of readings in the buffer;
use the
bufferVar.
n command to determine the number of readings in the buffer
Details
This attribute is like an array (a Lua table) of the sourced value in effect at the time of the reading.
The values returned by this command depend on the source readback state:
ï‚§ If readback is off, the value is the programmed value
ï‚§ If readback is on, the value is the actual measured source value
Example
testData = buffer.make(50)
smu.source.func = smu.FUNC_DC_CURRENT
smu.source.level = 1e-6
smu.source.output = smu.ON
trigger.model.load("SimpleLoop", 3, 0, testData)
trigger.model.initiate()
waitcomplete()
printbuffer(1, 3, testData.sourcevalues)
Create a reading buffer named
testData, configure the instrument to
make three measurements, and store the
readings in the buffer.
Set the source value to 1e-6 A.
Print the source values being output when
readings in the reading buffer were
acquired.
Example output:
9.9999874692e-07,
1.0000017028e-06,
Also see
bufferVar.sourcestatuses (on page 14-32)
bufferVar.sourceunits (on page 14-33)
bufferVar.statuses (on page 14-37)
bufferVar.formattedreadings (on page 14-24)
buffer.delete() (on page 14-9)
buffer.make() (on page 14-12)
bufferVar.clear() (on page 14-18)
print() (on page 14-99)
printbuffer() (on page 14-100)
Remote buffer operation (on page 6-25)
smu.source.readback (on page 14-167)