
19-30
Return to
2600AS-901-01 Rev. B / September 2008
Section 19: Remote Commands
Series 2600A System SourceMeter® Instruments Reference Manual
dataqueue.clear
Function
Clears the data queue.
TSP-Link
accessibility
This function can be accessed from a remote TSP-Link node.
Usage
dataqueue.clear()
Remarks
• The
dataqueue.clear
command forces all
dataqueue.add
commands in progress to time-
out.
• The function deletes all data from the data queue.
dataqueue.count
Attribute
Stores the number of entries saved in the data queue.
TSP-Link
accessibility
This attribute can be accessed from a remote TSP-Link node.
Usage
count = dataqueue.count
-- Reads number of data queue entries.
dataqueue.count = count
-- Writes number of data queue entries.
count
A custom variable that stores the number of entries
in the data queue.
Remarks
This is a read-only attribute.
dataqueue.next
Function
Removes the next entry from the data queue.
TSP-Link
accessibility
This function can be accessed from a remote TSP-Link node.
Usage
value = dataqueue.next()
value = dataqueue.next(timeout)
timeout
The maximum number of seconds to wait for data
in the data queue.
value
The next entry in the data queue.
Remarks
• If the data queue is empty, the function waits up to the
timeout
value.
• If data is not available in the data queue before the timeout value expires, the return value is
nil
.
• The entries in the data queue are removed in a first in and first out order.
• If the value is a table, a duplicate of the original table and any subtables is made. The duplicate
table does not contain any references to the original table or to any subtables.