High Voltage SourceMeter Instrument Reference Manual Section 14:
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
Instrument reset
Power cycle
buffer.FILL_ONCE (0)
defbuffer1:
buffer.FILL_CONTINUOUS (1)
defbuffer2:
buffer.FILL_CONTINUOUS (1)
Usage
fillMode = bufferVar.fillmode
bufferVar.fillmode = fillMode
Fill the buffer, then stop: buffer.FILL_ONCE or 0
Fill the buffer continuously: buffer.FILL_CONTINUOUS or 1
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
testData = buffer.make(50)
print(testData.fillmode)
testData.fillmode = buffer.FILL_CONTINUOUS
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:
Also see
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)