2470 High Voltage SourceMeter Instrument Reference Manual
Section 14: TSP command reference
2470-901-01 Rev. A /
May
2019
14-17
-- Fix the range to 10 V
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
(on page 14-12)
(on page 14-14)
(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
Attribute (RW)
Yes
Restore configuration
Instrument reset
Power cycle
Not applicable
Not applicable
Usage
bufferCapacity
=
bufferVar
.capacity
bufferVar
.capacity =
bufferCapacity
bufferCapacity
The maximum number of readings the buffer can store
bufferVar
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).