User`s guide
3 Signals and Parameters
3-2
Monitoring Signals
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, xPC Target enables you to monitor
test-pointed Stateflow
®
states 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 documentation for details. You can work with
Stateflow states as you do xPC Target signals, such as monitoring or plotting
Stateflow states. (See “Monitoring Stateflow States” on page 3-6 for details.)
After you start running a target application, you can use signal monitoring to
get signal data.
This section has the following topics:
• “Signal Monitoring with xPC Target Explorer” on page 3-2
• “Signal Monitoring with MATLAB” on page 3-6
• “Monitoring Stateflow States” on page 3-6
Signal Monitoring with xPC Target Explorer
This procedure uses the model xpcosc.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.
1 If the xPC Target Explorer is not started, start it now. In xPC Target
Explorer, select the node of the running target application in which you are
interested. For example,
xpcosc.
The target PC
Target Application Properties pane appears.