EasyManua.ls Logo

Agilent Technologies VEE Pro

Agilent Technologies VEE Pro
577 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
Loading...
Chapter 5 207
Storing and Retrieving Test Results
Using Arrays to Store Test Results
Lab 5-1: Creating an Array for Test Results
The easiest way to create an array is to use the Collector object.
This exercise uses the
For Count object to simulate four readings from an
instrument. The readings are put into an array and the results are printed.
The principles will be the same regardless of the data type or the size of the
array, since the
Collector will take any data type and create the array size
automatically depending on the number of elements sent.
1. Select
Flow Repeat For Count, Data Collector, and
Display AlphaNumeric.
2. Click
n+1 Dim in the Collector to change the selection to 1 Dim
Array
.
3. Connect the
For Count data output pin to the Data input pin on the
Collector.
4. Connect the
For Count sequence output pin to the XEQ input pin on the
Collector.
about the
For Count
object
For Count
outputs increasing integer values
starting at 0 depending on the number of iterations
you specify in the input field. Highlight the default
number
10 by double-clicking, then type 4. For
Count
will output 0, 1, 2, and 3.
about the
Collector
object
The
Collector receives data values through its
Data input terminal. When you finish collecting
data, you ping the
XEQ terminal to tell the
Collector to construct the array and output it. You
can use the
For Count sequence output pin to ping
the
Collector XEQ pin. The Collector displays
a button that toggles between a
1 Dim Array and
n+1
Dim Array.
Double-click the
Collector to get the open view,
and read through
Help in the object menu to
understand the object.

Table of Contents

Related product manuals