![background image](http://html2.mh-extra.com/html/keithley/2657a/2657a_reference-manual_4007750359.webp)
Section 7: TSP command reference
Model 2657A High Power System SourceMeter® Instrument Reference Manual
7-46
2657A-901-01 Rev. B/December 2012
Usage
count
= dataqueue.CAPACITY
count
The variable 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-47)
dataqueue.clear()
This function clears the data queue.
Type
TSP-Link accessible
Affected by
Where saved
Default value
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.
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")
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
Also see
(on page 7-47)
Содержание 2657A
Страница 3: ......