Section 7: TSP command reference
Series 2600B System SourceMeter® Instrument Reference Manual
7-46
2600BS-901-01 Rev. B / May 2013
dataqueue.CAPACITY
This constant is the maximum number of entries that you can store in the data queue.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Constant
Yes
Usage
count
= dataqueue.CAPACITY
count
The variable that is assigned the value of
dataqueue.CAPACITY
Details
This constant always returns the maximum number of entries that can be stored in the data queue.
Example
MaxCount = dataqueue.CAPACITY
while dataqueue.count < MaxCount do
dataqueue.add(1)
end
print("There are " .. dataqueue.count
.. " items in the data queue")
This example fills the data queue until it is full
and prints the number of items in the queue.
Output:
There are 128 items in the data
queue
Also see
dataqueue.add()
(on page 7-45)
dataqueue.clear()
(on page 7-46)
dataqueue.count
(on page 7-47)
dataqueue.next()
(on page 7-48)
dataqueue.clear()
This function clears the data queue.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
dataqueue.clear()
Details
This function forces all
dataqueue.add()
commands that are in progress to time out and deletes all data from
the data queue.
Summary of Contents for System SourceMeter 2601B
Page 841: ......