426 Chapter 11
Optimizing Agilent VEE Programs
Compiled Function using C (UNIX)
the C routine The C routine is a function, not a procedure. The
Compiled Function requires a return value, so if
you use a language that distinguishes between
procedures and functions, make sure you write the
routine as a function.
order of
execution
The Import Library object executes before the
Call object in the program. If you have any doubts
about the order of execution regarding these two
objects, use the sequence pins to assure the right order.
passing
variables
The parameter variable array passed by reference to
the function has both input and output terminals, but the
variable arraySize passed by value has only an input
terminal.
number of
array
elements
The Formula object uses the size of the array in the
Ret Value terminal to send the correct number of
array elements to the display.
XY Trace The XY Trace automatically autoscales the two
waveforms.