Section 14: TSP command reference
2470 High Voltage SourceMeter Instrument Reference Manual
14-24
2470-901-01 Rev. A /
May
2019
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
Restore configuration
Instrument reset
Power cycle
Not applicable
Not applicable
Usage
reading
=
bufferVar
.formattedreadings[
N
]
reading
Buffer reading formatted with numbers and prefixes with units for element
N
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 read-only attribute is an array that contains the stored readings. The readings are shown as
numbers with prefixes before the units symbol.
Example
reset()
testData = buffer.make(50)
trigger.model.load("SimpleLoop", 3, 0, testData)
trigger.model.initiate()
waitcomplete()
print(testData.formattedreadings[1])
printbuffer(1, testData.n, testData.formattedreadings)
Create a reading buffer named
testData
, configure the instrument to make three measurements, and store
the readings in the buffer.
Print the first reading.
Example output:
+00.0028 nA
Print all readings in the reading buffer.
Example output:
+00.0028 nA, +00.0039 nA, +00.0040 nA
Also see
(on page 14-28)
(on page 14-9)
(on page 14-12)
(on page 14-18)
(on page 14-99)
(on page 14-100)
(on page 6-25)