User`s guide

446 VEE User’s Guide
12 Optimizing Agilent VEE Programs Chapter
such as the Counter, instead of using open views. The example
in Figure 254 operates about 46 times faster using an iconic
view for the For Count and Counter object.
Figure 254 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 255, the function randomize uses the
array generated by the function ramp. In Figure 256, the