
Section 8: TSP command reference
Model 2450 Interactive SourceMeter® Instrument Reference Manual
8-20
2450-901-01 Rev. B/September 2013
Example
reset()
testData = buffer.make(50)
print(testData.fillmode)
testData.fillmode = buffer.FILL_CONTINUOUS
print(testData.fillmode)
defbuffer2.fillmode = buffer.FILL_ONCE
print(defbuffer2.fillmode)
Create a reading buffer named
testData
,
configure the instrument to make three
measurements, and store the readings in the
buffer.
Print the fillmode setting for the
testData
buffer.
Output:
0
Set fillmode to continuous.
Print the fillmode setting for the
testData
buffer.
Output:
1
Set
defbuffer2
fillmode to fill once and stop.
Print the fillmode setting for the
defbuffer2
buffer.
Output:
0
Also see
(on page 8-9)
(on page 8-11)
(on page 8-17)
(on page 8-77)
(on page 8-78)
(on page 3-10)
(on page 3-27)
bufferVar.formattedreadings
This attribute contains the stored readings formatted as they appear on the front-panel display.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Restore configuration
Instrument reset
Power cycle
Not applicable
Not applicable
Usage
readings
=
bufferVar
.formattedreadings[
N
]
readings
Buffer reading formatted as it appears on the front-panel display 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 between 1 and 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 (a Lua table) of strings that indicate the formatted reading as viewed on the
front-panel display.