02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

C<br />

<strong>Tornado</strong> Tools Reference<br />

The GUI can be invoked from the command line on the host shell. The following<br />

parameter is required and a verbose option is available:<br />

targetServer<br />

A living target server connected to the target to be used.<br />

-V<br />

Turn on verbose mode, which displays important steps of the interaction between<br />

host and target.<br />

NOTE: The vxColor demo is based on WTX and a TK-capable interpreter.<br />

C<br />

LAUNCHING THE DEMO<br />

(1) Switch on your target system (booting with VxWorks).<br />

(2) Launch a target server for this target.<br />

(3) Type the command line. For example, with a Motorola MVME162 board, assuming<br />

you named your target server demo162, enter:<br />

vxColor demo162<br />

After executing the above steps, your screen should display a window named ‘<strong>Tornado</strong><br />

Graph Coloring Demo’. The window displays three buttons:<br />

(1) a toggle that switches debug mode on or off<br />

(2) a menu button that allows you to select a predefined graph to run the demo with<br />

(3) a quit button<br />

Debug mode should be turned on to debug the target side of the VxColor demonstration<br />

with CrossWind. Turning on debug mode makes the stack size for the graph coloring<br />

tasks bigger in order to accommodate the extra space needed by local variable when the<br />

code is compiled with the debug option (-g) turned on. The header file of the demo<br />

($WIND_BASE/target/src/demo/color/vxColor.h) contains defines for different target types<br />

of the stack sizes of the controller and region tasks, in debug or normal mode. Normal<br />

mode demands the least memory and should be used when running the demo on boards<br />

with little memory capacity. You can adjust the stack size by editing the header file.<br />

Whichever mode you select, remember that you can watch the stack usage with the<br />

<strong>Tornado</strong> browser and that a stack overflow can lead to a severe system crash.<br />

When a graph has been selected, the main window displays this graph as a set of colored<br />

regions separated with border lines. The window displays a new set of buttons which are<br />

contextual controls.<br />

The following gives a description of the contextual controls:<br />

START<br />

Starts a coloring session.<br />

COLOR EDIT<br />

Menu for changing region colors:<br />

- RANDOM randomly initializes each region’s color.<br />

365

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!