
Section 7: Command reference
Models 707B and 708B Switching Matrix Reference Manual
7-52
707B-901-01 Rev. A / August 2010
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 assigned the value of
dataqueue.CAPACITY
Example
MaxCount = dataqueue.CAPACITY
while dataqueue.count < MaxCount do
dataqueue.add(1)
end
print("There are " .. dataqueue.count
.. " items in the data queue")
Add items to the data queue until it is at capacity.
Output:
There are 128 items in the data
queue
Also see
(on page 7-53)
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.
The function deletes all data from the data queue.