Chapter 11 413
Optimizing Agilent VEE Programs
Basic Techniques for Optimizing Programs
n When using Strip Charts and Logging AlphaNumeric displays,
set the
Buffer Size in Properties to the smallest number possible
for your application.
n Use the triadic operator, (condition ? expression1 : expression2), instead
of the
If/Then/Else object with Gates and a Junction.
n When using bitmaps, set them to
Actual or Centered rather than
Scaled, since Scaled will take a few moments longer.
n When using indicators such as the
Fill Bar or Thermometer, turn off
Show Digital Display.
n When using
Color Alarms, if you are switching between colors
rapidly, turn off
Show 3D Border.
In addition to the techniques already mentioned, linking compiled functions
in other languages to your VEE programs can increase execution speed.
Using compiled functions on PCs (as DLLs) are described in the next
section. Using compiled functions on UNIX platforms is described in the
section “Compiled Function using C (UNIX)” on page 424.