14: TSP command reference 2470 High Voltage SourceMeter Instrument
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
Not applicable Not applicable
Usage
reading = bufferVar.formattedreadings[N]
Buffer reading formatted with numbers and prefixes with units for element N
The name of the reading buffer, which may be a default buffer (
defbuffer1
) or a user-defined buffer
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
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
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
bufferVar.readings (on page 14-28)
buffer.delete() (on page 14-9)
buffer.make() (on page 14-12)
bufferVar.clear() (on page 14-18)
print() (on page 14-99)
printbuffer() (on page 14-100)
Reading buffers (on page 6-1)
Remote buffer operation (on page 6-25)