Main Content

Simulink Real-Time

Generate real-time applications for simulations that run on a target computer and interface with I/O devices in the target computer

Since R2020b

Description

Use the Simulink Real-Time app to configure a model to build and run real-time applications on a target computer. The app configures the model to use the Simulink Real-Time code generation target and other configuration parameters for code generation. When you open the app, a Real-Time tab is added to the toolstrip. The Real-Time tab represents groups of tasks in the Simulink Real-Time workflow.

After you use the app to configure the model for Simulink Real-Time, you can perform these and more tasks from the Real-Time tab in the Simulink Editor.

Use the actions in the Connect to Target Computer section to select and connect to a target computer.

UI Control

Description

Image showing target computer selection to activate Simulink Real-Time

From the target computers list on the Real-Time tab, select the target computer to which you want to connect. For more information, see the connect function.

Use the actions in the Prepare section to configure the model and tune parameters.

UI Control

Description

Image of Hardware Settings button

Configure model to run on target computer. The Configuration Parameters dialog box opens.

Image of Log Signals button

Send signal to the Simulation Data Inspector and workspace. Select one or more signals before using this button.

Image of Add Viewer button

Add a viewer to the selected signals. Select one or more signals before using this button.

Image of Test Point button

Allocate memory and make signals observable when using a Floating Scope. Select one or more signals before using this button.

Image of Signal Table button

Show table to manage signal logging and viewing. The Signal Table tab opens at the bottom of the Simulink Editor.

Image of Configure Logging button

Configure logging. The Data Inport/Export tab of the Configuration Parameters dialog box opens.

Image of SLRT Explorer button

Start Simulink Real-Time Explorer. For more information, see Simulink Real-Time Explorer.

Image of Library Browser button

Open block library. The block library browser opens. See the Simulink® Real-Time™ blocks and the Speedgoat I/O Blockset.

Image of Control Panel button

Launch external mode control panel. The control panel opens.

Image of Connect Inputs button

Link sets of signals from files and workspace to root Inport blocks. The Root Inport Mapper opens.

Image of Hold Updates button

Communicate changes of multiple parameters at once. For more information, see Tune Parameters by Using Hold Updates and Update All Parameters.

Image of Update All Parameters button

Update all parameters on target computer. For more information, see Tune Parameters by Using Hold Updates and Update All Parameters.

Image of Remove Hardware Configuration button

Remove hardware configuration from this model. The code generation target is set to grt.tlc.

Use the actions in the Run on Target section build the model, deploy the real-time application to the target computer, and run the real-time application.

UI Control

Description

Image of Run on Target button

Run application on target computer, observe outputs, and tun parameters. One-click builds and deploys real-time application when model changes are found. For more information, see Build and Download Real-Time Application by Using Run on Target.

Image of Build Application button

Generate a real-time application from Simulink mode. For more information, see Execute Real-Time Application in Simulink External Mode by Using Step-by-Step Commands.

Image of Deploy to Target button

Deploy real-time application to target computer. For more information, see Execute Real-Time Application in Simulink External Mode by Using Step-by-Step Commands.

Image of Connect Model button

Connect Simulink model to real-time application on target computer. For more information, see Execute Real-Time Application in Simulink External Mode by Using Step-by-Step Commands.

Image of Start Application button

Run real-time application. Observe output and tune parameters by using Simulink model. For more information, see Execute Real-Time Application in Simulink External Mode by Using Step-by-Step Commands.

Image of Restart Application button

Restart real-time application on target computer. For more information, see Execute Real-Time Application in Simulink External Mode by Using Step-by-Step Commands.

Image of stop Application button

Stop real-time application on target computer. For more information, see Execute Real-Time Application in Simulink External Mode by Using Step-by-Step Commands.

Image of Disconnect Model button

Disconnect Simulink model from real-time application on target computer. For more information, see Execute Real-Time Application in Simulink External Mode by Using Step-by-Step Commands.

Image of AutoImportFileLog check box

Import the file log data on application stop. For more information, see the AutoImportFileLog argument for the start function or stop function. You also can select this option by using the Run or Stop button in Simulink Real-Time Explorer.

Use the actions in the Review Results section instrument the model and observe outputs.

UI Control

Description

Image of Data Inspector button

View logged data in the Simulation Data Inspector.

Image of Start Recording button

Start signal logging and streaming. For more information, see startRecording function and Signal Logging and Streaming Basics.

Image of Stop Recording button

Stop signal logging and streaming. For more information, see stopRecording function and Signal Logging and Streaming Basics.

Image of Logic Analyzer button

Visualize, measure, and analyze transitions and states over time in the Logic Analyzer.

Image of TET Monitor button

View real-time application task execution time. For more information, see Simulink Real-Time TET Monitor.

Image of App Generator button

Launch App Generator to create an App Designer instrument panel. For more information, see Simulink Real-Time App Generator.

Image of Add Instrument button

Image of Configure Instrument button

Use the Simulink model to select signals to view in the Simulation Data Inspector. After adding and instrument to the model, the button label changes from Add Instrument to Configure Instrument. For more information, see Add Instruments to Real-Time Application from Simulink Model.

Image of Remove Instrument button

Stop recording selected signal values in the Simulation Data Inspector. For more information, see Add Instruments to Real-Time Application from Simulink Model.

Image of Highlight Instrument button

Highlight selected signals. For more information, see Add Instruments to Real-Time Application from Simulink Model.

Image of Import Instrument button

Import instrument from file. For more information, see Add Instruments to Real-Time Application from Simulink Model.

Image of Export Instrument button

Export instrument to file. For more information, see Add Instruments to Real-Time Application from Simulink Model.

Simulink Real-Time app

Open the Simulink Real-Time

In the Apps gallery, under Real-Time Simulation and Testing, click Simulink Real-Time. The Real-Time tab opens.

Version History

Introduced in R2020b

expand all