User`s guide
450 VEE User’s Guide
12 Optimizing Agilent VEE Programs Chapter
Overview of Compiled Functions
You can use a compiled function in a VEE program, such as a
DLL (Dynamic Link Library). To do so, you must obtain the
compiled function or follow these steps to create it:
1 Write functions in C, C++, Fortran, or Pascal and compile
them.
2 Write a definition file for the functions.
3 Create a shared library containing the compiled functions.
Benefits of Using Compiled Functions
Using compiled functions in a VEE program offers the following
benefits:
• Faster execution speed
• Leveraging current test programs in other languages
• Developing data filters in other languages and integrating
them into VEE programs
• Securing proprietary routines
Design Considerations in Using Compiled Functions
If you plan to use compiled functions in a VEE program, take
the following information into consideration:
• You can use any facilities available to the operating system
including math routines, instrument I/O, and so forth.
However, you cannot access any VEE internals from within
the program to be linked.
NOTE
Adding compiled functions adds complexity to the development process.
Therefore, use a compiled function only when the capability or
performance that you need is not available with one of the following: a
VEE UserFunction, an Execute Program escape to the operating system, or
an ActiveX Automation call to another program.