User`s guide

Appendix
VEE User’s Guide 525
Now change the program so that the slider sets a global variable
called Amplitude. Have the NoiseGen function use that global
(so NoiseGen will no longer require an input pin). Make the
program run correctly. Save this file as uflab.vee.
Solution—Using UserFunctions, Step 4
Figure 296 shows a solution for step 4.
Figure 296 User Functions, Step 4
Hint: Notice the Call AddNoise and Formula objects use the
global Amplitude, so both of the objects need to run after the Set
Amplitude object executes. Connecting the Sequence pins from
Set Amplitude to Call AddNoise, and Call AddNoise to Formula
ensure the objects execute in the required order.