User`s guide

Signal Tracing
functions instead of using the xPC Target graphical user interface. This
procedure assumes that you have assigned
tg to the appropriate target PC.
After you create and download the target application, you can view output
signals.
Using the MATLAB interface, you can trace signals w ith
Host or target scopes (see “Signal Tracing with the MATLAB Interface and
Target Scopes” o n page 3-41 for a description of with target scopes)
File scopes (see “Signal Tracing w ith the M ATL AB Interface and File
Scopes” on page 3-45)
You must stop the scope before adding or removing signals from the scope.
Signal Tracing with the MATLAB Interface and Target Scopes
This procedure uses the Simulink model xpcosc.mdl as an example, and
assumes you have built the target applicatio n for this model. It describes how
to trace signals with target scopes.
1 Start running your target application. Type any of
+tg
or
tg.start
or
start(tg)
The t arget PC displ ays the following message.
System: execution started (sample time: 0.0000250)
2 To get a list of signals, type either
set(tg, 'ShowSignals', 'on')
or
3-41