2470 High Voltage SourceMeter Instrument Reference Manual
Section 14: TSP command reference
2470-901-01 Rev. A /
May
2019
14-23
bufferVar.fillmode
This attribute determines if a reading buffer is filled continuously or is filled once and stops.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
Restore configuration
Instrument reset
Power cycle
Configuration script
User-defined buffer:
buffer.FILL_ONCE (0)
defbuffer1:
buffer.FILL_CONTINUOUS (1)
defbuffer2:
buffer.FILL_CONTINUOUS (1)
Usage
fillMode
=
bufferVar
.fillmode
bufferVar
.fillmode =
fillMode
fillMode
Fill the buffer, then stop:
buffer.FILL_ONCE
or
0
Fill the buffer continuously:
buffer.FILL_CONTINUOUS
or
1
bufferVar
The name of the reading buffer, which may be a default buffer (
defbuffer1
or
defbuffer2
) or a user-defined buffer
Details
When a reading buffer is set to fill once, no data is overwritten in the buffer. When the buffer is filled,
no more data is stored in that buffer and new readings are discarded.
When a reading buffer is set to fill continuously, the oldest data is overwritten by the newest data after
the buffer fills.
When you change the fill mode of a buffer, any data in the buffer is cleared.
Example
reset()
testData = buffer.make(50)
print(testData.fillmode)
testData.fillmode = buffer.FILL_CONTINUOUS
print(testData.fillmode)
Create a reading buffer named
testData
, configure the instrument to make three measurements, and store
the readings in the buffer. Print the fill mode setting for the
testData
buffer.
Output:
0
Set fill mode to continuous.
Print the fill mode setting for the
testData
buffer.
Output:
1
Also see
(on page 14-9)
(on page 14-12)
(on page 14-18)
(on page 14-99)
(on page 14-100)
(on page 6-25)