Dataqueue.capacity; Dataqueue.clear() - Keithley 2651A Reference Manual

High power system sourcemeter instrument
Hide thumbs Also See for 2651A:
Table of Contents

Advertisement

Model 2651A High Power System SourceMeter® Instrument Reference Manual

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.
The function deletes all data from the data queue.
2651A-901-01 Rev. A / March 2011
Affected by
The variable assigned the value of dataqueue.CAPACITY
(on page 7-38)
(on page 7-39)
(on page 7-40)
(on page 7-41)
Affected by
Where saved
Default value
Add items to the data queue until it is at capacity.
Output:
There are 128 items in the data
queue
Where saved
Default value
Section 7: Command reference
7-39

Advertisement

Table of Contents
loading

Table of Contents