EasyManua.ls Logo

Agilent Technologies VEE Pro

Agilent Technologies VEE Pro
577 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 11 409
Optimizing Agilent VEE Programs
Basic Techniques for Optimizing Programs
Figure 11-2. 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.
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.
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, such as the
Counter, instead of using
open views. The example in Figure 11-3 operates about 46 times faster using
an iconic view for the
For Count and Counter object.

Table of Contents

Related product manuals