This procedure uses the model
xpcosc as an
example. You must have already completed the following setup:
Built and downloaded the real-time application to the target computer using Simulink® ( on the toolbar).
Run Simulink Real-Time™ Explorer (command
Connected to the target computer in the Targets pane ( on the toolbar).
Set property Stop time to
the Applications pane (
To monitor a signal:
In Simulink Real-Time Explorer, expand the Model Hierarchy node under the real-time application node.
To view the signals in the real-time application, select the model node. On the toolbar, click the View Signals icon . The Signals workspace opens.
To view the value of a signal, in the Signals workspace, select the Monitor check box for the signal. For instance, select the check boxes for Signal Generator and Integrator1. The signal values are shown in the Monitoring Value column.
To start execution, click the real-time application. On the toolbar, click the Start icon .
To stop execution, click the real-time application. On the toolbar, click the Stop icon .
The Application Parameters and Signals workspaces look like this figure.
To group signals, see Create Signal Groups Using Simulink Real-Time Explorer.
When you are monitoring a signal group, you can change the output format of the group by selecting one of the options in the Format column. See Signal Group Monitoring Formats.
To make both workspaces visible at the same time, drag one workspace tab down until the following icon appears in the middle of the dialog box: . Continue to drag until the cursor reaches the required quadrant, and then release the mouse button.
To save your Simulink Real-Time Explorer window layout, click File > Save Layout. In a later session, you can click File > Restore Layout to restore your layout.
If a block name consists only of spaces, Simulink Real-Time Explorer does not display a node for or signals from that block. To reference such a block:
Provide an alphanumeric name for the block
Rebuild and download the model to the target computer.
Reconnect the MATLAB® session to the target computer.