Series 3700A System Switch/Multimeter Reference Manual Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018 11-37
bufferVar.units
This attribute contains the unit of measure that is stored with readings in the reading buffer.
Clearing the buffer
Instrument reset
Recall setup
USB flash drive using
dmm.savebuffer or
dmm.appendbuffer
Usage
unitsOfMeasure = bufferVar.units[N]
The units of measure stored with the readings
The reading number (1 to bufferVar.n)
Details
This attribute is an array (Lua table) of the strings that indicate the unit of measure that is stored with
readings in the buffer. You can designate units as one of the following: Volts AC, Volts DC, Amps AC,
Amps DC, dB VAC, dB VDC, Ohms 2wire, Ohms 4wire, Ohms ComSide, Fahrenheit, Kelvin, Celsius,
Hertz, Seconds, and Continuity.
Example
reset()
testData = dmm.makebuffer(1000)
dmm.nplc = 0.5
dmm.range = 0
dmm.configure.set("Dcv_100mV")
dmm.setconfig("slot2", "Dcv_100mV")
scan.create("2035:2040")
scan.execute(testData)
print(testData.units[1])
printbuffer(1, 6, testData.units)
This example creates a reading buffer
named testData, sets and saves the DMM
configuration, creates a scan list, and then
runs the scan.
The print() command outputs the units of
the first reading in the reading buffer.
Output:
Volts DC
The printbuffer() command outputs the
units of readings 1 to 6 in the reading buffer.
Output:
Volts DC, Volts DC, Volts DC,
Volts DC, Volts DC, Volts DC
Also see
Reading buffers (on page 6-7, on page 6-1)