Main Content

Simulink Real-Time Explorer

Interact with target computer and real-time application running on target computer

Description

Simulink® Real-Time™ Explorer provides a single point of contact for viewing connection status and interacting with a real-time application. You can monitor and trace signals, tune parameters, and stream data to the Simulation Data Inspector.

Note

Do not use Simulink external mode while Simulink Real-Time Target Explorer is running. Use only one interface or the other.

Use Simulink Real-Time Explorer for these tasks:

  • Connect the development computer and target computer.

  • Load, start, and stop a real-time application on target computer.

  • View real-time application parameters and signal hierarchy.

  • Select real-time application signals for streaming to the Simulation Data Inspector.

  • Set real-time application stop time.

For examples, click the links in the More Information column.

Target Computer Configuration

CapabilityMore Information

Configure target computer configuration settings.

Target Computer Settings

Real-Time Application Access and Control

CapabilityMore Information
  • Connect target computers to a development computer, and then disconnect them.

  • Load a prebuilt real-time application into a target computer.

  • Start and then stop running a real-time application that you downloaded to the target computer.

  • Display execution time, task execution time, and other properties of the real-time application.

  • Change stop time without regenerating code.

Parameter Tuning

CapabilityMore Information

Filter and group hierarchical parameters

Display and Filter Hierarchical Signals and Parameters

Display and tune parameter values while the real-time application is running.

Tune Parameters by Using Simulink Real-Time Explorer

Open the Simulink Real-Time Explorer

From the Simulink Editor, in the Real-Time tab, select Prepare > SLRT Explorer. Or, from the MATLAB® Command Window, type:

slrtExplorer

Examples

expand all

This example shows how to change the IP address of the target computer, update the target computer software, and reboot the target computer.Image of Simulink Real-Time Explorer, Target Configuration tab

Open the Simulink Real-Time Explorer.

Select the target computer in the Targets Tree panel.

To change the IP address of the target computer, click the Change IP Address button.

To update the target computer software, click the Update Software button.

To reboot the target computer, click the Reboot button.

This example shows how to connect to the target computer, load the real-time application, set the stop time, and start the real-time application.

Image of Simulink Real-Time Explorer, Parameters tab

Open the Simulink Real-Time Explorer.

Select the target computer in the Targets Tree panel.

To connect to the target computer if not already connected, click Disconnected toggling it to Connected.

To select and load a real-time application, click Load Application and select the mldatx file.

To select the application stop time, type a value (in seconds) in the Stop time field.

To start the application, click the Start button.

In Explorer, clicking the Start button is equivalent to executing this command for target object tg:

start(tg, 'ReloadOnStop', true)

To stop the real-time application, click the Stop button.

This example shows how to connect to the target computer, load the real-time application, select signals for a signal list, start the real-time application, and view the streaming data in the Simulation Data Inspector.

Image of Simulink Real-Time Explorer, Signals tab

Open the Simulink Real-Time Explorer.

To connect to the target computer if not already connected, click Disconnected toggling it to Connected.

To select and load a real-time application, click Load Application and select the mldatx file.

To select signals for streaming, click the application name, select signals from the Signals tab, and click the Add selected signals button.

To run the application and generate data for streaming, click the Run button.

To stream the signal data, select the signals in the Group signals to stream for SDI list and click the Stream Signal Group to SDI button.

To view the streaming signals, click the Open in SDI button.

After viewing the data, to stop the real-time application, click the Stop button.

Programmatic Use

expand all

slrtExplorer opens the Simulink Real-Time Explorer.

Introduced in R2020b