3.4   Starting and Stopping Data Collection

As you add more instrumentation, you increase the number of logged events. If there is a lot of activity on your target, starting and stopping WindView manually from the control window can generate unnecessarily large logs and make your problem-solving more difficult. There are three ways to control WindView:

There are two approaches to using the API. The most straightforward is to use wvOn( ) and wvOff( ), located in target/src/config/usrWindview.c. These routines start a typical instance of event logging and upload. These routines are not used by WindView itself, so they can be modified to suit individual requirements.

The second approach is to use the routines in wvLib. Information is available in the reference entries; you can examine the source code in target/src/config/usrWindview.c to see how they are used. They are more difficult to use than wvOn( ) and wvOff( ), since the order in which they are invoked is critical.

All WindView routines are discussed in C. Library and Subroutine Reference.