Dataqueue.capacity - Keithley 3700A Series Reference Manual

System switch/multimeter
Hide thumbs Also See for 3700A Series:
Table of Contents

Advertisement

Series 3700A System Switch/Multimeter Reference Manual
Details
You cannot use the timeout value when accessing the data queue from a remote node (you can
only use the timeout value while adding data to the local data queue).
The timeout value is ignored if the data queue is not full.
The dataqueue.add() function returns false:
If the timeout expires before space is available in the data queue
If the data queue is full and a timeout value is not specified
If the value is a table, a duplicate of the table and any subtables is made. The duplicate table does
not contain any references to the original table or to any subtables.
Example
dataqueue.clear()
dataqueue.add(10)
dataqueue.add(11, 2)
result = dataqueue.add(12, 3)
if result == false then
print("Failed to add 12 to the dataqueue")
end
print("The dataqueue contains:")
while dataqueue.count > 0 do
print(dataqueue.next())
end
Also see

dataqueue.CAPACITY

dataqueue.clear()
dataqueue.count
dataqueue.next()
Using the data queue for real-time communication
dataqueue.CAPACITY
This constant is the maximum number of entries that you can store in the data queue.
Type
TSP-Link accessible
Constant
Yes
Usage
count = dataqueue.CAPACITY
count
Details
This constant always returns the maximum number of entries that can be stored in the data queue.
3700AS-901-01 Rev. D/June 2018
(on page 11-111)
(on page 11-112)
(on page 11-113)
(on page 11-114)
Affected by
The variable that is assigned the value of dataqueue.CAPACITY
Section 11: TSP command reference
Clear the data queue.
Each line adds one item to the data queue.
Output:
The dataqueue contains:
10
11
12
(on page 10-61)
Where saved
Default value
11-111

Advertisement

Table of Contents
loading

Table of Contents