Section 8: TSP command reference
Model 2450 Interactive SourceMeter® Instrument Reference Manual
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
Power cycle
Not saved
Not applicable
Usage
sourceValue
=
bufferVar
.sourcevalues[
N
]
sourceValue
The output value of the source when reading
N
of the specified buffer was acquired
bufferVar
The name of the reading buffer, which may be a default buffer (
defbuffer1
or
defbuffer2
) or a user-defined buffer
N
The reading number
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
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
reset()
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,
1.0000054544e-06
Also see
(on page 8-29)
(on page 8-30)
(on page 8-33)
(on page 8-20)
(on page 8-9)
(on page 8-11)
(on page 8-17)
(on page 8-77)
(on page 8-78)
(on page 3-10)
(on page 3-27)
(on page 8-144)