User`s guide
380 VEE User’s Guide
10 Test Sequencing Chapter
Figure 209 Passing Data Using an Input Terminal
As the number of tests increases, passing data using an input
terminal requires more and more input pins. To reduce the
input pins, you could pass records to input terminals and use
individual fields in the records for the separate tests. You could
also use a separate UserFunction to set up global variables,
which can then be called by other UserFunctions or any
expression field within the program. The next exercise
illustrates this.
Passing Data Using a Global Variable
This exercise modifies the seqdat1 program by adding a global
variable to pass the parameter a to the UserFunction Rand.
1 Delete the Real64 Slider object labeled Select Num. Delete the
A input terminal on the Sequencer.
2 Highlight the test1 transaction bar, open the object menu,
and click Insert Trans.... When the Sequence Transaction
box appears, click TEST to toggle the selection to EXEC and
change the name to Setup.
3 You will use EXEC mode, since the User Function will only set
up a global variable and will not yield a result that needs to
be tested against a specification.
4 Change the FUNCTION field to global() and click OK to
close the dialog box.
5 You will now create the UserFunction global().
6 Select Device ⇒ UserFunction. Change the name UserFunction1
to global.
Select Data ⇒ Continuous ⇒ Real64 Slider and put it in the
UserFunction, change the name to Select Num:, and size it
to be smaller vertically.
Select Data ⇒ Variable ⇒ Set Variable and place it to the
right of the Real64 Slider.
Change the global variable name from globalA to a . Connect
the Real64 Slider to the Set Variable object.