User`s guide
3 Signals and Parameters
Monitoring Signals
In this section...
“Introduction” on page 3-2
“Signal Monitoring with xPC Target Exp lorer” on page 3-2
“Signal Monitoring with the MATLAB Interface” on page 3-9
“Monitoring Stateflow States” on pag e 3-10
“Animating Stateflow Charts” on page 3-14
Introduction
Signal monitoring is the process for acquiring signal data during a real-time
run without time information. The advantage with signal monitoring is that
there is no additional load on the real-time tasks. Use signal monitoring to
acquire signal data without creating scopes that run on the target PC.
In addition to signal monitoring, the xPC Target software enables you to
monitor S tateflow
®
states as test points through the xPC Target Explorer
and MATLAB command-line interfaces. You designate data or a state in a
Stateflow diagram as a test point. This makes it observable during execution.
See the Stateflow and Stateflow
®
Coder™ User’s Guide for d etails. You
can work with Stateflow states as you do with xPC Target signals, such as
monitoring or plotting Stateflow states.
After you start running a target application, you can use signal monitoring to
get signal data.
Note xPC Target Explorer works with multidimensional signals in
column-major format.
Signal Monitoring with xPC Tar get Explorer
This procedure uses the model xpcos c.mdl as an example, and assumes
you created and downloaded the target application to the target PC. For
meaningful values, the target application should be running.
3-2