Use MATLAB Language to Create and Execute a Real-Time Application
To run your real-time application in a repeatable manner, build, download, configure, and run your real-time application with MATLAB® language. You can:
Perform runs interactively or initiate automated runs and test sequences.
Tune parameters during, before, or after a run.
Instrument (configure-for-streaming-from-application), view, and log signals on the development computer or target computer.
Objects
Target | Represent real-time application and target computer status (Since R2020b) |
Application | Represent application files on development computer (Since R2020b) |
Instrument | Create real-time instrument object (Since R2020b) |
slrealtime.instrument.LineStyle | Create real-time instrument LineStyle object (Since R2022b) |
SystemLog | Create a system log object that contains the current console log (Since R2020b) |
Stimulation | Target computer model root inport stimulator object (Since R2021a) |
Properties
Target Object Properties | slrealtime Target object properties for configuration and status (Since R2020b) |
Functions
Topics
Application Preparation and Execution
- Simulate Simulink Model by Using MATLAB Language
Run a Simulink® model from the Command Window. - Define and Update Inport Data by Using MATLAB Language
Map root inports to source data. - Stimulate Root Inport by Using MATLAB Language
This example shows how to stimulate the root inports in a real-time application that is running on a target computer. - Prepare Real-Time Application by Using MATLAB Language
Build a real-time application in the Command Window and download it to the target computer. - Execute Real-Time Application with MATLAB Language
Start, stop, and view the real-time application from the Command Window. - Save and Reload Parameters by Using Simulink Real-Time Explorer
Save real-time application parameter values to a file on the target computer.
MATLAB Interface
- Target and Application Objects
Use the MATLAB Command Window to change properties and control the target computer and your real-time application. - Instrumentation Apps for Real-Time Applications
Interface with your real-time application by using instrument panel apps. - Save and Reload Parameters by Using the MATLAB Language
Save real-time application parameter values to a file on the target computer.
Troubleshooting
Troubleshooting in Simulink Real-Time
Troubleshoot problems that you encounter while using the Simulink Real-Time™ product