Specifications
Modification of Variables and Arrays
updt1419.vee: This program operates stand-alone. This example shows how
operator interaction with running algorithms takes place and how to download
changes for both scalar and array variables.
Analog output channel 132 is assumed connected to analog input channel 100 for
this example. Rather than use a custom function to generate the sine wave,
Agilent VEE’s function generator objects are used to generate a sine wave, triangle
wave, and square wave. There are three 100-element arrays created that will be
downloaded into the VT1419A’s memory, dependent upon the waveform to be
generated. Algorithm 1 is expanded in the picture above and shows how it
sequences through the array “waveform” to send values to the analog output. With
each trigger cycle, Algorithm 1 executes and picks a value from the array dependent
upon a counter variable(i). The variable “inc” is used to increment the counter so
elements in the array can be skipped to generate a higher frequency waveform. Also
note in Algorithm 1 that the output value to O132 consists of both the “waveform”
array plus the variable “offset.”
VEE Programming Examples
Modification of Variables and Arrays
166 Chapter 5
Figure 5-14: Example of Variable and Array Modification
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com