User`s guide

3 Signals and Parameters
Limitations
The f ol lowing ar e limitat ions of uploading xPC Target signals to Sim u li n k
external mode:
When setting up signal triggering (Source set to signal), you must explicitly
specify the element number of the signal in the Trigger signal:Element
field. If the signal is a scalar, enter a value of
1.Ifthesignalisawide
signal, enter a value from
1 to 10. Do n ot enter La st or Any in this field
when uploading xPC Target signals to Simulink scopes.
The Direction:Holdoff field h as no effect for the xPC Target signal
uploading feature.
Before You Start
The procedures in this topic use the Simulink model xpc osc.mdl,which
already contains a Simulink Scope b lock, as an example. After you download
your target application to the target PC, you can connect your Simulink model
to the target application.
Signal Tracing with External Mode Example
This procedure assumes that you have down loaded yo ur target application
to the target PC.
Note that this procedure edits the Simulink window External Mode Control
Panel and assumes that you are familiar with that dialog box. See “External
Mode Control Panel” in the Real-Time Workshop User’s Guide for details of
the Simulink externa l mod e dia log box .
1 In the MATLAB window, type
xpcosc
2 In the Simulink window, and from the Tools menu, select External Mode
Control Panel.
The External Mode Control Panel dialog box opens.
3 Click the Signal & Triggering
button.
The External Signal & Triggering dialog box opens.
3-52