Section 11: TSP command reference Model 2601B-PULSE System SourceMeter Instrument Reference Manual
11-26 2601B-PULSE-901-01A April 2020
Usage
fillMode = bufferVar.fillmode
bufferVar.fillmode = fillMode
The reading buffer fill mode; set to one of the following:
â–ª 0 or smua.FILL_ONCE: Do not overwrite old data
â–ª 1 or smua.FILL_WINDOW: New readings restart at index 1 after acquiring
reading at index bufferVar.fillcount
The reading buffer; can be a dynamically allocated buffer (user-defined), or a
dedicated reading buffer (such as smua.nvbuffer1)
Details
When this attribute is set to smua.FILL_ONCE, the reading buffer will not overwrite readings. If the
buffer fills up, new readings will be discarded.
When this attribute is set to smua.FILL_WINDOW, new readings will be added after existing data until
the buffer holds bufferVar.fillcount elements. Continuing the sequence, the next reading will
overwrite the reading at index 1, the reading after that will overwrite the reading at index 2, and so on.
For dedicated reading buffers, all buffer attributes are saved to nonvolatile memory only when the
reading buffer is saved to nonvolatile memory.
Example
smua.nvbuffer1.fillmode = smua.FILL_ONCE
Sets fill mode of dedicated reading buffer 1 to fill once (do not overwrite old data).
Also see
bufferVar.fillcount (on page 11-25)
Reading buffers (on page 5-1)
bufferVar.measurefunctions
This attribute contains the measurement function that was used to acquire a reading stored in a specified
reading buffer.
Usage
measurefunction = bufferVar.measurefunctions[N]
The measurement function used (Current, Voltage, Ohms, or Watts) to acquire
reading number N in the specified buffer
The reading buffer; can be a dynamically allocated buffer (user-defined), or a
dedicated reading buffer (such as smua.nvbuffer1)
The reading number (1 to bufferVar.n)