Section 14: TSP command reference
2470 High Voltage SourceMeter Instrument Reference Manual
14-18
2470-901-01 Rev. A /
May
2019
Example
reset()
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.
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:
10000
Also see
(on page 14-9)
(on page 14-12)
(on page 14-18)
(on page 14-99)
(on page 14-100)
(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
Function
Yes
Usage
bufferVar
.clear()
bufferVar
The name of the reading buffer, which may be a default buffer (
defbuffer1
or
defbuffer2
) or a user-defined buffer