User`s guide
344 VEE User’s Guide
9 Using Agilent VEE Functions Chapter
Using Libraries With Agilent VEE UserFunctions
To leverage existing VEE test programs, you can re- use
UserFunctions. When you save a program, the UserFunctions
are automatically saved as well. A UserFunction can hold a VEE
program or a library of logically related UserFunctions.
There are two ways to put existing UserFunctions into a new
program:
Put a copy of the original UserFunctions into the current
program, using the File ⇒ Merge Library... command (where
you now maintain the separate copy of each UserFunction).
These merged UserFunctions can be edited, so use the File ⇒
Merge Library... command when you plan to modify the
UserFunctions.
-OR-
Access the original UserFunctions using the Device ⇒ Import
Library object, which accesses the original functions in another
file without making a copy. These UserFunctions are imported
at run time. This spreads out the load times, conserves disk
space, and saves memory. Imported UserFunctions can be
viewed (such as for debugging purposes) but cannot be edited.
Instead, you can edit their original files. You can also delete
imported UserFunctions programmatically, using the Device ⇒
Delete Library object.
Therefore, merge UserFunctions when you need a new copy of
the function to modify or you need a standalone program, and
import UserFunctions when you want a single source for the
function or you want to save space.
Lab 9-2: Creating and Merging a Library of UserFunctions
In this exercise, you will create a report generation program
that includes a VEE library of UserFunctions. Then you will
create a new program that merges the library of UserFunctions.