8: TSP command reference Model 2450 Interactive SourceMeter® Instrument
8-32 2450-901-01 Rev. B/September 2013
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 saved 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
defbuffer2) or a user-defined buffer
N
; can be any value between 1 and the number of readings in
the buffer; use the bufferVar.n command to determine the number of readings
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 8-29)
bufferVar.sourceunits (on page 8-30)
bufferVar.statuses (on page 8-33)
bufferVar.formattedreadings (on page 8-20)
buffer.delete() (on page 8-9)
buffer.make() (on page 8-11)
bufferVar.clear() (on page 8-17)
print() (on page 8-77)
printbuffer() (on page 8-78)
Reading buffers (on page 3-10)
Remote buffer operation (on page 3-27)
smu.source.readback (on page 8-144)