Monitor Signals with Simulink Real-Time Explorer

This procedure uses the model xpcosc. You must have already completed the following setup:

  1. Open model xpcosc. Set property Stop time to inf. On the Real-Time tab, select Run on Target > Stop Time and set the Stop Time to inf.

  2. Connect to the target computer. On the Real-Time tab, toggle the Disconnected indicator to Connected.

  3. Build and download the real-time application to the target computer. On the Real-Time tab, click Run on Target.

  4. Open Simulink® Real-Time™ Explorer. On the Real-Time tab, click Prepare > SLRT Explorer.

To monitor a signal:

  1. In Simulink Real-Time Explorer, expand the Model Hierarchy node under the real-time application node.

  2. To view the signals in the real-time application, select the model node. On the toolbar, click the View Signals button . The Signals workspace opens.

  3. 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.

  4. To start execution, click the real-time application. On the toolbar, click the Start button .

  5. To stop execution, click the real-time application. On the toolbar, click the Stop button .

    The Application Properties and Signals workspaces look like this figure.

To make both workspaces visible at the same time, drag one workspace tab down until the  icon appears in the middle of the dialog box. Continue to drag the workspace until the cursor reaches the required quadrant, and then release the mouse button.

To save your Simulink Real-Time Explorer layout, click File > Save Layout. In a later session, you can click File > Restore Layout to restore your layout.

Related Topics