108 Chapter 2
Agilent VEE Programming Techniques
Debugging Programs in Agilent VEE
Figure 2-26. Pause or Stop a Program
Resolving Errors
If you get an error message when you run a program, VEE automatically
puts a red outline around the object where the error was found.
You can either correct the error and the outline will disappear, or you can
click the Stop button, which will remove the red outline, and then fix the
error. If you click Stop, you can look at the error again before resuming,
with
View ⇒ Last Error.
Using the Go To Button to Locate an Error
Figure 2-27 shows an example runtime error message. When this program
runs, VEE displays a Run Time error and shows a red outline around the
UserObject AddNoise. When the Go To button is pressed, VEE opens the
UserObject AddNoise and shows a red outline around the A + B object,
which is missing a connection on the
A input pin. In a large program, the Go
To
feature can help you locate the source of an error quickly.
Pause Button Stop Button