410 Chapter 11
Optimizing Agilent VEE Programs
Basic Techniques for Optimizing Programs
Figure 11-3. Optimizing Programs by Using Icons
Reduce the Number of Objects in Programs
As you become more experienced, you will tend to use less objects in VEE
programs. There are two more techniques to reduce the number of objects
and therefore optimize programs:
1. Use a single equation in a
Formula object instead of using separate
mathematical objects. For example, put the equation
((a + b) * c)/d
into a
Formula object instead of using separate objects for addition,
multiplication, and division. Also, use constants in the formula instead of
constant objects connected to inputs. (Set constants with
Set
Variable
.)
2. Nest function calls within other function parameter lists. For instance, in
Figure 11-4, the function randomize uses the array generated by the
function ramp. In Figure 11-5, the function call to
ramp is nested in the
call to
randomize, resulting in slightly faster program execution.