![background image](http://html2.mh-extra.com/html/keithley/sourcemeter-2600b-series/sourcemeter-2600b-series_reference-manual_4085220389.webp)
Section 7: TSP command reference
Series 2600B System SourceMeter® Instrument Reference Manual
7-50
2600BS-901-01 Rev. C / August 2016
Example
dataqueue.clear()
dataqueue.add(10)
dataqueue.add(11, 2)
result = dataqueue.add(12, 3)
if result == false then
print("Failed to add 12 to the dataqueue")
end
print("The dataqueue contains:")
while dataqueue.count > 0 do
print(dataqueue.next())
end
Clear the data queue.
Each line adds one item to the data queue.
Output:
The dataqueue contains:
1.01
1.01
1.01
Also see
(on page 7-50)
(on page 7-51)
(on page 7-51)
dataqueue.CAPACITY
This constant is the maximum number of entries that you can store in the data queue.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Constant
Yes
Usage
count
= dataqueue.CAPACITY
count
The variable that is assigned the value of
dataqueue.CAPACITY
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")
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
Also see
(on page 7-49)
(on page 7-51)
(on page 7-51)