EasyManuals Logo
Home>Keithley>Multimeter>3700A Series

Keithley 3700A Series Reference Manual

Keithley 3700A Series
936 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #493 background imageLoading...
Page #493 background image
Section 11: TSP command reference Series 3700A System Switch/Multimeter Reference Manual
11-114 3700AS-901-01 Rev. D/June 2018
dataqueue.next()
This function removes the next entry from the data queue.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
value = dataqueue.next()
value = dataqueue.next(timeout)
value
The next entry in the data queue
timeout
The number of seconds to wait for data in the queue
Details
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 expires, the return value is nil.
The entries in the data queue are removed in first-in, first-out (FIFO) 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.
Example
dataqueue.clear()
for i = 1, 10 do
dataqueue.add(i)
end
print("There are " .. dataqueue.count
.. " items in the data queue")
while dataqueue.count > 0 do
x = dataqueue.next()
print(x)
end
print("There are " .. dataqueue.count
.. " items in the data queue")
Clears the data queue, adds ten entries, then
reads the entries from the data queue. Note that
your output may differ depending on the setting of
format.asciiprecision.
Output:
There are 10 items in the data queue
1
2
3
4
5
6
7
8
9
10
There are 0 items in the data queue
Also see
dataqueue.add() (on page 11-110)
dataqueue.CAPACITY (on page 11-111)
dataqueue.clear() (on page 11-112)
dataqueue.count (on page 11-113)
format.asciiprecision (on page 11-245)
Using the data queue for real-time communication (on page 10-61)

Table of Contents

Other manuals for Keithley 3700A Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keithley 3700A Series and is the answer not in the manual?

Keithley 3700A Series Specifications

General IconGeneral
BrandKeithley
Model3700A Series
CategoryMultimeter
LanguageEnglish

Related product manuals