106 Chapter 2
Agilent VEE Programming Techniques
Debugging Programs in Agilent VEE
Using the Alphanumeric Displays for Debugging
You can add the Alphanumeric or Logging Alphanumeric displays at
different points in a program to track the flow of data. When the program is
running correctly, delete them.
AlphaNumeric displays a single data
container (a
Scalar value, an Array 1D, or Array 2D), and Logging
AlphaNumeric
(either a Scalar or Array 1D) displays consecutive input
as a history of previous values. You can also use a
Counter to see how
many times an object ran.
Using Breakpoints
A breakpoint causes a program to pause before it executes a particular
object. You can set breakpoints in a program to examine the data. When a
breakpoint is set on an object, the object is highlighted with an orange
colored outline. When the program runs, it will pause before executing that
object.
1. Set a breakpoint on a single object. Double-click the title bar of an object
to get the
Properties dialog box, then select Breakpoint Enabled
and click
OK. Then select Debug ⇒ Activate Breakpoints. Run
the program. It will pause at the object with the breakpoint.
2. Set additional breakpoints on several other objects. Select the objects.
(Press
Ctrl and click on each object.) Click the Toggle Breakpoint(s)
button on the tool bar as shown in Figure 2-23. (You could also press
Ctrl-B.) Run the program again. The program pauses at the first object
with a breakpoint set.
Figure 2-23. Set Breakpoint(s)
Toggle Breakpoint Button