High Voltage SourceMeter Instrument Reference Manual Section 14:
2470-901-01 Rev. A / May 2019 14-17
smu.measure.range = 10.0
-- set the measurement count to 100
smu.measure.count = 100
-- Set up reading buffers
-- Ensure the default measurement buffer size matches the count
defbuffer1.capacity = 100
smu.measure.read()
buffer.saveappend(defbuffer1, fileName)
Write string data to a file with information about a test file.
Also see
buffer.make() (on page 14-12)
buffer.save() (on page 14-14)
Reading buffers (on page 6-1)
Remote buffer operation (on page 6-25)
bufferVar.capacity
This attribute contains the number of readings a buffer can store.
Type TSP-Link accessible Affected by Where saved Default value
Instrument reset
Usage
bufferCapacity = bufferVar.capacity
bufferVar.capacity = bufferCapacity
The maximum number of readings the buffer can store
The name of the reading buffer, which may be a default buffer (defbuffer1 or
defbuffer2
) or a user-defined buffer
Details
This command allows you to change or view how many readings a buffer can store. Changing the
size of a buffer will cause any existing data in the buffer to be lost.
The overall capacity of all buffers stored in the instrument cannot exceed 5,000,000 readings for
standard reading buffers and 21,000,000 for compact reading buffers.
For more information about buffer capacity, see Setting reading buffer capacity (on page 6-10
).