14: TSP command reference 2470 High Voltage SourceMeter Instrument
14-18 2470-901-01 Rev. A / May 2019
Example
testData = buffer.make(500)
capTest = buffer.make(300)
bufferCapacity = capTest.capacity
print(bufferCapacity)
print(testData.capacity)
testData.capacity = 600
print(testData.capacity)
print(defbuffer1.capacity)
Create two user-defined reading buffers: testData and
capTest.
Create a variable called bufferCapacity to hold the
capacity of the capTest buffer.
Print bufferCapacity.
Output:
300
Print the capacity of testData.
Output:
500
Changes the capacity of testData to 600.
Print the capacity of testData.
Output:
600
Print the capacity of the default buffer defbuffer1.
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)
bufferVar.clear()
This function clears all readings and statistics from the specified buffer.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
bufferVar.clear()
The name of the reading buffer, which may be a default buffer (defbuffer1 or
defbuffer2
) or a user-defined buffer