Specifications

A Very Simple First Algorithm
This section shows how to create and download an algorithm that simply sends the
value of an input channel to a CVT element. It includes an example application
program that configures the VT1419A, downloads (defines) the algorithm, starts
and then communicates with the running algorithm.
Writing the
Algorithm
The most convenient method of creating an algorithm is to use a text editor or word
processor to input the source code.
/* Example algorithm that calculates 4 Mx+B values upon
* signal that sync == 1. Your application sets sync with the
* SCPI command ALG:SCALAR
* M and B terms are also set by application
* program.
*/
static float M, B, x, sync;
if ( First_loop ) sync = 0;
if ( sync ==1){
writecvt( M*x+B, 10 );
writecvt(-(M*x+B), 11 );
writecvt( (M*x+B)/2,12 );
writecvt( 2*(M*x+B),13 );
sync = 2;
}
Running the
Algorithm
The supplied Agilent VEE example program “temp1419.vee” shows how to load
and run algorithms. See Chapter 5 page 149.
The Algorithm Language and Environment
A Very Simple First Algorithm
120 Chapter 4
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com