8: TSP command reference Model 2461 Interactive SourceMeter® Instrument
8-40 2461-901-01 A/November 2015
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
Not applicable Not applicable
Usage
readingUnit = bufferVar.units[N]
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
: Math is set to reciprocal for the measurements
The name of the reading buffer, which may be a default buffer (defbuffer1 or
defbuffer2) or a user-defined buffer
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
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.
Output:
Volt DC, Volt DC, Volt DC