Chapter 9 357
Test Sequencing
Analyzing Data from the Sequencer
Run the program at this point to see the display of the Sequencer data.
Now use the
Formula object to extract part of the data to analyze. This
exercise uses the results of
test1 for all three runs as an example, and finds
the mean of that array.
4. Select
Device ⇒ Formula and place it below the display. Connect the
Formula input pin to the output of the Collector. Change the
Formula input field to read: a[*].test1.result. Connect a
mean(x) object to Formula, and an AlphaNumeric display to
mean(x).
The a refers to the array on the input terminal
A. Test1.result
accesses the proper field. All runs will be shown in an array.
(
A[0].test1.result would refer to the first run only, for example.)
5. Run the program. It should look like Figure 9-15.