User`s guide

Optimizing Agilent VEE Programs Chapter 12
VEE User’s Guide 445
Figure 253 Calculating Square Roots using Math Array
The difference in the execution speeds of the two programs is
due to the time required for an object to execute. There is a
fixed amount of overhead when an object executes. Therefore,
when you reduce the number of times an object executes by
using arrays rather than scalar values, the program runs faster.
Using the Do object is a good idea when timing to make sure the
timer triggers first in both programs. The ramp function
generates an array with 1024 elements starting at 0 and ending
at 1023.
Make Objects into Icons Whenever Possible
The more information VEE has to maintain on the screen, the
more time it will take the program to run. To optimize the
program, use iconic views for objects that update their contents,
NOTE
To ensure faster execution, always make sure you are using the most
recent execution mode in VEE. To do this, click File Default
Preferences (or use the button on the tool bar). Select VEE6 under
Execution Mode and click Save. In the status bar at the bottom of the VEE
window, you should see VEE6 listed.