To add the variables in the Watch or Expressions
window, click View → Scripting Console to open the scripting
console dialog box. On the upper right corner of this console, click the
Open button, then browse to the
setupdebugenv_build1.js script file located inside the
project folder. This script file populates the Watch window with
appropriate variables needed to debug the system. Click the Continuous
Refresh button () on the Watch window to enable continuous
update of values from the controller. Figure 3-8 shows the Watch window.
Figure 3-8 Build Level 1
Expressions View
The current and voltage measurements
can be verified by viewing the data in the graph window. These values are logged
in the slower 10kHz routine. Go to Tools → Graph →
DualTime, and click Import and point to the
graph1.GraphProp file inside the project folder. This file
populates the Graph Properties window. Alternatively, enter the values
as shown in the Figure 3-9. When the entries are verified, click the OK button. Two graphs appear
in CCS. Click the Continuous Refresh button ()
on these graphs. A second set of graphs can also be added by importing the
graph2.GraphProp file.