Model 2461 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2461-901-01 A/November 2015
8-33
Details
The attribute is an array (a Lua table) of strings indicating the units of measure at the time of the
reading.
Example
reset()
testData = buffer.make(50)
smu.source.output = smu.ON
testData.fillmode = buffer.FILL_CONTINUOUS
trigger.model.load("SimpleLoop", 3, 0, testData)
smu.source.func = smu.FUNC_DC_CURRENT
trigger.model.initiate()
waitcomplete()
printbuffer(1, testData.n, testData.sourceunits)
trigger.model.load("SimpleLoop", 3, 0, testData)
smu.source.func = smu.FUNC_DC_VOLTAGE
trigger.model.initiate()
waitcomplete()
printbuffer(1, testData.n, testData.sourceunits)
smu.source.output = smu.OFF
Create a reading buffer named
testData
, configure the instrument to
make three measurements, and store the
readings in the buffer.
Set the source output to ON.
Set the buffer to fill continuously.
Set the source function to current.
Take three readings.
Print the units for the first three readings
in the buffer.
Output:
Amp DC, Amp DC, Amp DC
Set the source function to voltage.
Take three readings.
Print the units for the readings in the
buffer.
Output:
Volt DC, Volt DC, Volt DC
Also see
(on page 8-32)
(on page 8-33)
(on page 8-36)
(on page 3-2)
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 applicable
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 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.