User`s guide
340 VEE User’s Guide
9 Using Agilent VEE Functions Chapter
Notice that the functionality of ArrayStats in the Formula
object is exactly the same as it was in the Call ArrayStats
object. This example uses a Formula object, but you could
call ArrayStats from any input field that accepts
expressions, such as the To File object.
Generating a Call to a UserFunction
To generate and place a call object in the Main program
from a UserFunction, use the UserFunction object menu
Generate menu. The Generate menu contains most of the
common objects that call a UserFunction. When you select a
calling object, it can be placed in the calling window, such
as the Main program, properly configured with the correct
name and pins.
NOTE
When you call a UserFunction from an expression, the UserFunction will
only deliver a single output (the uppermost data output pin). If you need all
of the outputs, or they cannot be put into a Record, then use the Call
Function object.
NOTE
When you call a UserFunction from an expression, input terminals are
used as function parameters to pass to the function. If no data is passed to
the function, you must still include empty parentheses after the function
name. Otherwise, VEE assumes you are referring to a Global variable or
input terminal. For example, if the UserFunction called MyFunction has no
input parameters, you must write MyFunction() in an expression. The Call
object does not require the parentheses, because VEE knows you are
referring to a function
.