User`s guide
96 VEE User’s Guide
2 Agilent VEE Programming Techniques Chapter
Figure 56 Creating a Formula Object Program
When you run the program, the Formula object takes the
waveform input A and the real value B, and adds B to the
absolute value of A. In effect, the expression abs(A)+B
“rectifies” the sine wave and adds a “dc offset.” You could
have produced the same effect by using the A+B and
abs(x)
objects, but it is easier to read an expression in a Formula
object. (This also saves space.)
Try double- clicking the input and output terminals of the
Formula object. Note that the real scalar on input B is added
to each element of the waveform data (a one- dimensional
array) on input A, and the resulting waveform is output on
the Result terminal.
NOTE
To augment VEE’s extensive math capability, there are hundreds more
mathematical functions available through MATLAB Script integration.
Browse through these functions in the Function & Object Browser. For
more information about using MATLAB functions, refer to “Using
MATLAB Script in Agilent VEE" on page 188 of Chapter , “Analyzing and
Displaying Test Data.”