Section 11: TSP command reference
Series 3700A System Switch/Multimeter Reference Manual
11-26
3700AS-901-01 Rev. D/June 2018
bufferVar.formattedreadings
This attribute contains the stored readings shown as numbers with units and prefixes.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Clearing the buffer
Instrument reset
Recall setup
USB flash drive using
dmm.savebuffer or
dmm.appendbuffer
Not applicable
Usage
readings =
bufferVar
.formattedreadings[
N
]
bufferVar
The reading buffer
N
The reading number (
1
to
bufferVar
.n
)
Details
This read-only attribute is an array that contains the stored readings. The readings are shown as
numbers with prefixes before the units symbol.
Use this attribute to access the reading elements
N
as they appear on the front panel.
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.formattedreadings[1])
printbuffer(1, 6, testData.formattedreadings)
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 first
reading, formatted as it appears on the
front-panel display.
Output:
+000.0006e-3
The
printbuffer()
command then
outputs readings 1 to 6 in the reading buffer
as they appear on the front-panel display.
Output:
6.000000000e-07, 7.000000000e-07,
5.000000000e-07, 7.000000000e-07,
7.000000000e-07, 6.000000000e-07
Also see
(on page 11-29)