Dataqueue.count - Keithley 708B Reference Manual

Switching matrix
Hide thumbs Also See for 708B:
Table of Contents

Advertisement

Models 707B and 708B Switching Matrix 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")
dataqueue.clear()
print("There are " .. dataqueue.count
.. " items in the data queue")
Also see
dataqueue.add()
dataqueue.CAPACITY

dataqueue.count

dataqueue.next()
dataqueue.count
This attribute contains the number of items in the data queue.
Type
TSP-Link accessible
Attribute (R)
Yes
Usage
count = dataqueue.count
count
Details
The count gets updated as entries are added and read from the data queue. It is also updated when the
dataqueue is cleared.
The number of items in the data queue are controlled through dataqueue.add(), dataqueue.next(), and
dataqueue.clear(), with a maximum of dataqueue.CAPACITY items.
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")
707B-901-01 Rev. A / August 2010
(on page 7-51)
(on page 7-52)
(on page 7-53)
(on page 7-54)
Affected by
Power off
dataqueue.add()
dataqueue.clear()
dataqueue.next()
The number of items in the data queue
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
Where saved
Default value
Not saved
Not applicable
Add items to the data queue until it is at capacity.
Output:
There are 128 items in the data queue
There are 0 items in the data queue
Section 7: Command reference
7-53

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

707b

Table of Contents