EasyManuals Logo

Tektronix Keithley SourceMeter 2470 Reference Manual

Tektronix Keithley SourceMeter 2470
995 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #689 background imageLoading...
Page #689 background image
2470
High Voltage SourceMeter Instrument Reference Manual Section 14:
TSP command reference
2470-901-01 Rev. A / May 2019 14-49
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
dataqueue.add() (on page 14-47)
dataqueue.CAPACITY (on page 14-48)
dataqueue.count (on page 14-49)
dataqueue.next() (on page 14-50)
Using the data queue for real-time communication (on page 9-10)
dataqueue.count
This attribute contains the number of items in the data queue.
Type TSP-Link accessible Affected by Where saved Default value
Attribute (R)
Yes
Not applicable
Not applicable
Not applicable
Usage
count = dataqueue.count
count
The number of items in the data queue
Details
The count is 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")
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

Table of Contents

Other manuals for Tektronix Keithley SourceMeter 2470

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tektronix Keithley SourceMeter 2470 and is the answer not in the manual?

Tektronix Keithley SourceMeter 2470 Specifications

General IconGeneral
BrandTektronix
ModelKeithley SourceMeter 2470
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals