514 Appendix A
Additional Lab Exercises
Test Sequencing
Test Sequencing
Using the Test Sequencer, Step 1
Create a simple
UserFunction called UpperLimit that is a pop-up panel
with a
Real64 Slider and a Confirm (OK) object. Send the output of
the slider to a global variable called
UpLimit and also to an output terminal.
Create a
Sequencer object, and configure test1 in the Sequencer as an
EXEC transaction that calls UpperLimit.
Create another function called
AddRand that simulates the test you might
call. This function should add an input value to a random value (
0 to 1). It
will have one input pin and one output pin.
From the
Sequencer, create test2 to call AddRand and send in a zero.
Test the return value to do a limit comparison less than the global
UpLimit
value. If it passes, then return
"PASS" + test2.result. If it fails, return
"FAILED" + test2.result. Put an Alphanumeric display on the
Return pin of the Sequencer.
After the
Sequencer object, ping a Get Variable object (UpLimit) and
another
Alphanumeric display. Run the program several times.