Dataqueue.clear() - Keithley DMM7510 Reference Manual

7 1/2 digit graphical sampling multimeter
Hide thumbs Also See for DMM7510:
Table of Contents

Advertisement

Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
Example
MaxCount = dataqueue.CAPACITY
while dataqueue.count < MaxCount do
dataqueue.add(1)
end
print("There are " .. dataqueue.count
.. " items in the data queue")
Also see
dataqueue.add()

dataqueue.clear()

dataqueue.count
dataqueue.next()
Using the data queue for real-time communication
dataqueue.clear()
This function clears the data queue.
Type
TSP-Link accessible
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.
Example
MaxCount = dataqueue.CAPACITY
while dataqueue.count < MaxCount do
dataqueue.add(1)
end
print("There are " .. dataqueue.count
.. " items in the data queue")
dataqueue.clear()
print("There are " .. dataqueue.count
.. " items in the data queue")
Also see
dataqueue.add()
dataqueue.CAPACITY
dataqueue.count
dataqueue.next()
Using the data queue for real-time communication
DMM7510-901-01 Rev. B / May 2015
(on page 8-47)
(on page 8-49)
(on page 8-50)
(on page 8-50)
Affected by
(on page 8-47)
(on page 8-48)
(on page 8-50)
(on page 8-50)
Section 8: TSP command reference
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
(on page 3-113)
Where saved
This example fills the data queue and prints the
number of items in the queue. It then clears the
queue and prints the number of items again.
Output:
There are 128 items in the data
queue
There are 0 items in the data queue
(on page 3-113)
Default value
8-49

Advertisement

Table of Contents
loading

Table of Contents