Specifications
Figure 5-9 illustrates where this module would be integrated into a VEE application
program. This module must come after RESET and before any algorithm is defined
that would use a function. Simply pick the name of the function, the domain of
input values (Minimum and Maximum), a unique function number between 1 and
32 and the formula to be used, which includes any Agilent VEE math function. It’s
that simple!
The only restriction is that the variable “A” must be used to represent the value that
will be passed to the function from the C algorithm. When the function is called,
that value will be “inserted” into the formula just as represented in the formula box.
Also note that the accuracy of this piece-wise linear table conversion technique is
highly dependent upon the non-linearity and domain over which the tables are built.
The table consists of 128 segments spread over a binary representation of the
domain limits. Appendix E gives some background information on the capabilities
and limitations of this programming technique.
The FunctionDeclarationsArray can hold up to 32 function definitions. Any valid
function number 1-32 will cause the associated table to be built and downloaded
into the VT1419A’s function table memory space. A value of “0” for any
FuncNumber will cause that function to be ignored and not downloaded. Any *RST
or power-ON condition will require re-execution of this module.
The object Select PC/UNIX Files contains file name and directory paths necessary
to make the module execute properly on PC or UNIX platforms. Figure 5-8 of the
previous example shows that object open for observation. Note that the default
location of the VT1419A example programs is “c:\dabundle.” A typical UNIX path
is included for example. The example uses the Agilent VEE function whichOS() to
determine which directory structure to use.
VEE Programming Examples
Custom Function Generation
Chapter 5 157
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com










