
2470 High Voltage SourceMeter Instrument Reference Manual
Section 14: TSP command reference
2470-901-01 Rev. A /
May
2019
14-41
bufferVar.units
This attribute contains the unit of measure that is stored with readings in the reading buffer.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Restore configuration
Instrument reset
Power cycle
Not applicable
Not applicable
Usage
readingUnit
=
bufferVar
.units[
N
]
readingUnit
Volt DC
: Voltage measurement
Ohm
: Resistance measurement
Watt DC
: Power measurement
Amp DC
: Current measurement
%
: Math is set to percent for the measurements
mX+b
: Math is set to mx+b for the measurements
Reciprocal
: Math is set to reciprocal for the measurements
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 contains the unit of measure that is stored with readings in the reading buffer.
Example
reset()
testData = buffer.make(50)
testData.fillmode = buffer.FILL_CONTINUOUS
smu.measure.func = smu.FUNC_DC_CURRENT
trigger.model.load("SimpleLoop", 3, 0, testData)
trigger.model.initiate()
waitcomplete()
printbuffer(1, testData.n, testData.units)
smu.measure.func = smu.FUNC_DC_VOLTAGE
trigger.model.initiate()
waitcomplete()
printbuffer(1, testData.n, testData.units)
Create a reading buffer named
testData
, configure the instrument to make three measurements, and store
the readings in the buffer.
Set the buffer to fill continuously.
Set the measure function to current.
Make three readings.
Print the units for the readings.
Output:
Amp DC, Amp DC, Amp DC
Set the measure function to voltage.
Make three readings.