Example code 3.1, Watch expressions – Wavetronix Click 500 (programmable controller) (CLK-500) - Developer Guide User Manual
Page 39
38
CHAPTER 3 • GETTING STARTED
Watch Expressions
Watch expressions are used to monitor variable values and watch expressions within the
code. The contents of the watch window are updated each time the debugger pauses, pro-
viding convenient access to critical debugging information (see Figure 3.10). To add a watch
expression, select Inspect from the menu bar and then select Add Watch.
Figure 3.10 – Watch Expressions
Memory Dump
Memory dumping is useful for examining the contents of an array of data (see Figure 3.11).
The address of an array or structure may be obtained from the watch window or by rolling
the mouse cursor over the name of the variable. See chapter 10 for more information on
memory dump window usage.
Figure 3.11 – Memory Dump
Example Code 3.1
This example can be found in the Click500ExampleCode folder under the name
“ExampleCode3.1.c.” The purpose of this example is to demonstrate how to use the Dynam-
ic C IDE to compile, load and execute a custom application on the Click 500. The Click 500
will come up in Hello World mode at startup and will print “Hello World!” on the screen.