8: TSP command reference Model DMM7510 7½ Digit Graphical Sampling Multimeter
8-28 DMM7510-901-01 Rev. B / May 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
Fill the buffer, then stop: buffer.FILL_ONCE or 0
Fill the buffer continuously:
or
The name of the reading buffer, which may be a default buffer (defbuffer1 or
) 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
print(testData.fillmode)
Create a reading buffer named testData. 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 8-16)
buffer.make() (on page 8-18)
bufferVar.clear() (on page 8-24)
print() (on page 8-231)
printbuffer() (on page 8-232)
Reading buffers (on page 3-13)
Remote buffer operation (on page 3-30)