Chapter 8 317
Using Agilent VEE Functions
Using Libraries With Agilent VEE UserFunctions
Lab 8-3: Importing and Deleting Libraries
Once you have created a library of UserFunctions, you may not want to
merge them into every program. You might like to bring in the library at run
time, use some of the functions, and then delete the library to conserve
memory. The
Import Library and Delete Library objects are
designed for this situation.
In this exercise, you will import functions from the
RepGen program. Then
you will call the
BuildRecAry function to simulate some test data, display
it, and finally delete the library to free up memory and swap space.
1. Select
File ⇒ New.
2. Select
Device ⇒ Import Library and place it in Main. Set the
fields in the
Import Library object as follows:
Library Type The menu in the
Library Type field allows you to
select a
UserFunction, a Compiled Function, or a
Remote Function. In this case you want a UserFunction
library, so leave the default.
Library Name The
Library Name shows myLib as a default. This
name is used as a “handle” by the VEE program to
distinguish between different libraries being imported.
The
Delete Library object uses this name to
identify the library to be deleted. You can use the
default name.
File Name The
File Name field shows a dialog box for the user
program directory by default on a PC. (HP-UX systems
access the directory you were in when you started VEE.)
Specify the file that holds the library of functions.
Click the default name
myFile to get the list box. Select
RepGen.vee (from “Creating and Merging a Library of
UserFunctions” on page 310). This file will be in the
directory you specified for your programs during
installation.