
Model 2450 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2450-901-01 Rev. B/September 2013
8-31
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 3-10)
(on page 8-30)
(on page 8-32)
(on page 8-33)