User`s guide

Test Sequencing Chapter 10
VEE User’s Guide 377
Passing Data in the Sequencer
In this lab, you will create a UserFunction and call it from three
different tests. In the first part, you will pass data to the
UserFunctions through an input terminal on the Sequencer. In
the second part, you will modify the program to use a global
variable instead of an input terminal. This will give you a
chance to call a function in EXEC mode rather than TEST mode.
In the third part, you will learn how to test a waveform output
against a mask.
Lab 10-2: Passing Data Using an Input Terminal
First, follow the steps to create the UserFunction Rand, which
will simulate a measurement procedure. Rand() will add an
input parameter to the output of the random(low,high) object,
and put this result on the output pin. Rand() will be called from
three different tests.
1 Select Device UserFunction. Change the name from
UserFunction1 to Rand.
2 Get the random(low,high) function, delete the input
terminals, delete the parameters, and place it in Rand.
(Recall that without parameters, the defaults will be 0 and 1.)
Place an A+B object to the right of random(low,high).
Connect the output of random(low,high) to the upper left
input of the A+B object.
3 Add a data input terminal to Rand. Connect the input
terminal A to the lower left input terminal of the A+B object.
4 Add a data output terminal to Rand. Connect the output of
the A+B object to the Rand output terminal.
The UserFunction Rand should look like Figure 208.