Exercise 1: Activating the Trace Mode
Use
To keep track of the method calls added to the Automation Queue, you can use the trace mode. All Automation calls are written to a file with their parameters and result values and displayed on a dialog box. For example, this helps you analyze which queue method called has caused an error.
Procedure
-
Choose Options in the configuration menu.
The system displays a screen with tabs for the general options.
-
Choose the Trace tab.
-
To set the trace mode, choose Disable first.
-
Select the Automation checkbox, and choose a display level using one of the Trace Level radio buttons.
-
Enter a name for the trace file where you want to save the information.
-
To track trace information during program execution, select Show Window.
-
Choose Enable.
The system opens an additional window to display Automation calls.
-
Save your data by choosing OK.
Check Your Work
Start your program. In the trace window, you see how your method calls are passed on via the Automation Queue to the Automation Controller. If you have specified a file name, you can find the same text there.