| |||
| Home > AXD > AXD Desktop > System Views menu > Watch system view | |||

The Watch system view enables you to examine the value of variables, or of expressions depending on variables, in the images associated with various processors. You might require several processor views to see what you can display in a single system view.
A Watch system view is initially empty. You specify expressions. These expressions are evaluated each time program execution stops, and the values displayed. One way to add lines to this view is to select one or more items in a Variables processor view, then right-click and select Add to System View from the resulting pop-up menu.
Another way to add a line to the Watch system view is to select Add Watch from its pop-up menu to display an Add Watch dialog (see Figure 5.75).
An expression can be the name of a variable. Expressions can also include logical and arithmetic operators in addition to the names of variables and constants. If the displayed data has a tree structure, click on the + or – boxes to expand or collapse each level of the structure, but see Viewing structured data.
A typical Watch system view is shown in Figure 5.73.
You can define lists of expressions to watch on up to four tabbed pages. Click the tab of a page to display it.
If you hide a Watch system view then select it, the view reappears in the state it was in when you hid it.
If you close a Watch system view then select it, the view is displayed empty, as though you are selecting it for the first time.
When you right-click in a Watch system view, the pop-up menu that appears depends on which item on that page is currently selected.
If the mouse pointer is on a selectable line when you right-click, then that line is selected. Any pop-up menu items that do not apply to the selected line are disabled.
To display the Watch pop-up menu, shown in Figure 5.74, right-click within the Watch system view.
To display the dialog shown in Figure 5.75, select Add Watch from the pop-up menu.
Enter a new expression to watch. Specify the processor, whether the new watch must be added to the Watch processor view or system view, and on which tabbed page it must appear. Figure 5.75 shows Tab 1 of the Watch system view as the chosen destination. By default, the Tab radio button selected reflects the current tabbed page in the Watch system view. Select an expression and click the Evaluate button to see the result of its evaluation.
To add the selected expression to the chosen view, click the Add To View button.
The Locate Using Value, Locate Using Address, and Array Expansion... menu items function as described in Watch processor view pop-up menu.
Select Refresh to update and recalculate the displayed data values. This item is useful if the target supports RealMonitor. See also Refresh All.
To display the dialog shown in Figure 5.76, select Properties... from the pop-up menu.
See AXD online help for full details.