![background image](http://html2.mh-extra.com/html/keithley/2461/2461_reference-manual_3993652695.webp)
Section 8: TSP command reference
Model 2461 Interactive SourceMeter® Instrument Reference Manual
8-22
2461-901-01 A/November 2015
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
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 8-11)
(on page 8-14)
(on page 8-19)
(on page 8-92)
(on page 8-93)
(on page 3-2)
(on page 3-23)