Dataqueue.count - Keithley 2601B Reference Manual

2600b series system sourcemeter instrument
Hide thumbs Also See for 2601B:
Table of Contents

Advertisement

Series 2600B System SourceMeter® Instrument 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 with dataqueue.add() and read from the data queue with
dataqueue.next(). It is also updated when the data queue is cleared with dataqueue.clear().
A maximum of dataqueue.CAPACITY items can be stored at any one time in 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.clear()
dataqueue.next()
2600BS-901-01 Rev. B / May 2013
(on page 7-45)
(on page 7-46)
(on page 7-47)
(on page 7-48)
Affected by
Power cycle
The number of items in the data queue
(on page 7-45)
(on page 7-46)
(on page 7-46)
(on page 7-48)
Section 7: TSP command reference
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
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
7-47

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents