Dataqueue.capacity; Dataqueue.clear() - Keithley 2601B Reference Manual

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

Advertisement

Section 7: TSP command reference

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.
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()
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.
7-46
Affected by
The variable that is assigned the value of dataqueue.CAPACITY
(on page 7-45)
(on page 7-46)
(on page 7-47)
(on page 7-48)
Affected by
Series 2600B System SourceMeter® Instrument Reference Manual
Where saved
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
Where saved
Default value
Default value
2600BS-901-01 Rev. B / May 2013

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents