User`s guide
Using Agilent VEE Functions Chapter 9
VEE User’s Guide 339
Calling a UserFunction from an Expression
In this exercise, you will learn how to call ArrayStats from
an expression in the Formula object.
1 Select Device ⇒ Formula and replace the default formula
with ArrayStats(A). Click Replace in the Call ArrayStats
object menu.
The Status Bar at the bottom of the VEE screen prompts
you to select the replacement object. Click on the Formula
object that calls the ArrayStats function. VEE
automatically replaces the Call ArrayStats object with the
new Formula object and retains the wiring of the data
lines.
The Formula object takes the input at terminal A and
sends it to the UserFunction ArrayStats. ArrayStats
delivers the record of statistics to its terminal X. The first
output value from the UserFunction (X) is returned to the
Formula object and delivered to its Result output.
2 Run the program. It should look like Figure 186.
Figure 186 Calling the ArrayStats User Function