208 Chapter 5
Storing and Retrieving Test Results
Using Arrays to Store Test Results
The XEQ pin, a special trigger pin that exists on several different objects,
determines when the object executes. In this case, you want the object to
fire after all of the data for the array has been collected.
5. Connect the
Collector data output pin to the AlphaNumeric data
input pin.
6. Enlarge
AlphaNumeric to accommodate the array by clicking and
dragging on any corner of the object. (You could also have enlarged
AlphaNumeric when you first selected it by using “click and drag” on
the object outline.)
7. Run the program. It should look like Figure 5-1.
Figure 5-1. The Collector Creating an Array
Lab 5-2: Extracting Values from an Array
To extract values from an array, you can either use the bracket notation in an
expression, or use the
Access Array ⇒ Get Values object. The
following example uses expressions in the
Formula object. You will add
several objects to the program in this exercise.
1. Delete the data line between the
Collector and AlphaNumeric by
placing the mouse pointer over the line, pressing
Shift-Ctrl, and then
clicking the left mouse button. Then iconize the
Collector.