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 |
---|---|
| 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 |
Use the actions in the Prepare section to configure the model and tune parameters.
UI Control | Description |
---|---|
| Configure model to run on target computer. The Configuration Parameters dialog box opens. |
| Send signal to the Simulation Data Inspector and workspace. Select one or more signals before using this button. |
| Add a viewer to the selected signals. Select one or more signals before using this button. |
| Allocate memory and make signals observable when using a Floating Scope. Select one or more signals before using this button. |
| Show table to manage signal logging and viewing. The Signal Table tab opens at the bottom of the Simulink Editor. |
| Configure logging. The Data Inport/Export tab of the Configuration Parameters dialog box opens. |
| Start Simulink Real-Time Explorer. For more information, see Simulink Real-Time Explorer. |
| Open block library. The block library browser opens. See the Simulink® Real-Time™ blocks and the Speedgoat I/O Blockset. |
| Launch external mode control panel. The control panel opens. |
| Link sets of signals from files and workspace to root Inport blocks. The Root Inport Mapper opens. |
| Communicate changes of multiple parameters at once. For more information, see Tune Parameters by Using Hold Updates and Update All Parameters. |
| Update all parameters on target computer. For more information, see Tune Parameters by Using Hold Updates and Update All Parameters. |
| Remove hardware configuration from this model. The code generation target
is set to |
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 |
---|---|
| 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. |
| 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. |
| 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. |
| 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. |
| 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. |
| 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. |
| 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. |
| 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. |
| Import the file log data on application stop. For more information, see the
|
Use the actions in the Review Results section instrument the model and observe outputs.
UI Control | Description |
---|---|
| View logged data in the Simulation Data Inspector. |
| Start signal logging and streaming. For more information, see |
| Stop signal logging and streaming. For more information, see |
| Visualize, measure, and analyze transitions and states over time in the Logic Analyzer. |
| View real-time application task execution time. For more information, see Simulink Real-Time TET Monitor. |
| Launch App Generator to create an App Designer instrument panel. For more information, see Simulink Real-Time App Generator. |
| 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. |
| Stop recording selected signal values in the Simulation Data Inspector. For more information, see Add Instruments to Real-Time Application from Simulink Model. |
| Highlight selected signals. For more information, see Add Instruments to Real-Time Application from Simulink Model. |
| Import instrument from file. For more information, see Add Instruments to Real-Time Application from Simulink Model. |
| Export instrument to file. For more information, see Add Instruments to Real-Time Application from Simulink Model. |
Open the Simulink Real-Time
In the Apps gallery, under Real-Time Simulation and Testing, click Simulink Real-Time. The Real-Time tab opens.