14: TSP command reference 2470 High Voltage SourceMeter Instrument
14-34 2470-901-01 Rev. A / May 2019
Details
The attribute is an array (a Lua table) of strings indicating the units of measure at the time of the
reading.
Example
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
bufferVar.sourceunits (on page 14-33)
bufferVar.sourcevalues (on page 14-35)
bufferVar.statuses (on page 14-37)
Reading buffers (on page 6-1)