Contenido principal

Run Simulink Real-Time Application

Interactive execution with development and target computers

When you run the real-time application, you can start and stop execution; observe signals and log signal data; and tune real-time application parameters.

You can use the following interfaces to run the application:

Apps

Simulink Real-TimeGenerate real-time applications for simulations that run on a target computer and interface with I/O devices in the target computer
Simulink Real-Time ExplorerInteract with target computer and real-time application running on target computer
Simulink Real-Time TET MonitorObserve task execution time for the real-time application running on target computer
Simulink Real-Time App GeneratorGenerate instrument panel app to interact with target computer and real-time application running on target computer (Since R2022a)
Simulink Real-Time Application Property InspectorView and modify application properties (Since R2023b)

Tools

Simulation Data InspectorInspect and compare data and simulation results to validate and iterate model designs

Objects

TargetRepresent real-time application and target computer status
ApplicationRepresent application files on development computer
InstrumentCreate real-time instrument object
slrealtime.instrument.LineStyleCreate real-time instrument LineStyle object (Since R2022b)

Properties

Target Object Propertiesslrealtime Target object properties for configuration and status

Functions

expand all

slrtAppGeneratorGenerate instrument panel app to interact with target computer and real-time application running on target computer (Since R2022a)
slrtApplicationInspectorOpen Simulink Real-Time Application Property Inspector and view the application information, signals, parameters (Since R2023b)
slrtExplorerOpen Simulink Real-Time explorer and interact with target computers and real-time applications
slrtTETMonitorOpen Simulink Real-Time task execution time (TET) monitor
getApplicationFileGet name of real-time application file (Since R2021b)
getInstalledApplicationsGet list of installed real-time application files (Since R2021b)
getLastApplicationGet name of real-time application most recently run on target computer (Since R2021b)
getRootLevelInportsReturns root level inports in application (Since R2022a)
startStart execution of real-time application on target computer
stopStop execution of real-time application and unload it from the target computer
removeAllApplicationsRemoves all Simulink Real-Time applications from target computer (Since R2022b)
removeApplicationRemoves Simulink Real-Time application from Speedgoat target computer (Since R2022a)
updateRootLevelInportDataReplace external input data in real-time application with input data
updateStartupParameterSetUpdate the startup parameter set for an application
pausePause stimulation of root inports of model on target computer
startStart stimulation of root inports of model on target computer
stopStop stimulation of root inports of model on target computer
reloadDataReload data signal of root inports of model on target computer
clearLogsRemove system log file and backup log file on target computer (Since R2026a)
configureModelForTargetPlatformConfigure model to build for selected and connectable target computer (Since R2024a)
getSTFNameGet system target file name for selected and connectable target computer (Since R2024a)
getVersionGet MATLAB and Speedgoat I/O Blockset version information (Since R2023a)
getStatusReturn status of root inports stimulation of model on target computer
getTargetTimeGet target computer date and time (Since R2025a)
getTargetTimezoneGet target computer time zone information (Since R2025a)
setTargetTimeSet target computer date and time (Since R2025a)
setTargetTimezoneSet target computer time zone preference (Since R2025a)
slrealtimeInterface for managing target computer
updateAutoSaveParameterSetOnStopUpdate the auto save parameter set on stop for an application (Since R2022b)
slrealtime help(Linux-based RTOS) Display help information for command-line interface on target computer (Since R2026a)
slrealtime install(Linux -based target computer RTOS) Install real-time application on target computer
slrealtime listApplications(Linux-based RTOS) Get list of installed real-time application files from target computer command line
slrealtime load(Linux-based RTOS) Load real-time application to target computer
slrealtime loadParamSet(Linux-based RTOS) Restore parameter values saved in specified file
slrealtime ptpdstatus(Linux-based RTOS) Display operation status of PTP daemon on target computer (Since R2026a)
slrealtime saveParamSet(Linux-based RTOS) Save real-time application parameter values
slrealtime start(Linux-based RTOS) Start execution of real-time application on target computer
slrealtime startptpd(Linux-based RTOS) Start operation of PTP daemon on target computer (Since R2026a)
slrealtime stop(Linux-based RTOS) Stop execution of real-time application on target computer
slrealtime stopptpd(Linux-based RTOS) Stop operation of PTP daemon on target computer (Since R2026a)
shutdown(Linux-based RTOS) Safely shut down the RTOS before turning off power to the target computer
POST installInstall a real-time application on the target computer (Since R2026a)
PUT loadLoad real-time application on target computer (Since R2026a)
PUT startStart real-time application on target computer (Since R2026a)
PUT stopStop real-time application on target computer (Since R2026a)
GET model_statuQuery target computer status (Since R2026a)

Topics

From Development Computer

From Target Computer

Troubleshooting

Troubleshooting in Simulink Real-Time

Troubleshoot problems that you encounter while using the Simulink Real-Time product

Featured Examples