Main Content

Use MATLAB Language to Create and Execute a Real-Time Application

Real-time application configuration and execution

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.


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
SystemLogGet current console log from target computer
StimulationTarget computer model root inport stimulator object


expand all

connectConnect MATLAB to target computer
disconnectDisconnect MATLAB from target computer
rebootRestart target computer
setipaddrSet IP address and netmask on the target computer
slrealtimeInterface for managing target computer
updateUpdate RTOS version on target computer
getparamRead value of observable parameter in real-time application
getRootLevelInportsReturns root level inports in application
getsignalRead a signal value from a real-time application
loadDeploy to target and load real-time application to target computer
setStopTimeConfigure stop time for real-time application
setparamChange value of tunable parameter in real-time application
slbuildBuild standalone executable file or model reference target for model
startStart execution of real-time application on target computer
statusGet status of real-time application on target computer
stopStop execution of real-time application on target computer
updateRootLevelInportDataReplace external input data in real-time application with input data
addParamSetAdd a parameter set to a real-time application
deleteParamSetDelete selected parameter set file from an application
exportParamSetWrite ParameterSet object data to parameter set file
importParamSetCreate ParameterSet object
listParamSetList available parameter set files for application
loadParamSetRestore parameter values saved in specified file
saveParamSetSave real-time application parameter values
updateAutoSaveParameterSetOnStopUpdate the auto save parameter set on stop for an application
updateStartupParameterSetUpdate the startup parameter set for an application
discardDelete file log data from target computer
listGet information about available file logs of signal data
importImport file log data from target computer
slrealtime.fileLogImportAfter copying file logs from target to development computer, import file logs into Simulation Data Inspector
slrealtime.fileLogListAfter copying file logs from target to development computer, list available file logs for import into Simulation Data Inspector
startRecordingStarts signal data live streaming and File Log logging
stopRecordingStops signal data live streaming and File Log logging
deleteProfilerDataDelete execution profiler data from target computer
getAvailableProfileGet information about available execution profiler data
getProfilerDataRetrieve profile data object
resetProfilerReset profiling service state to Ready
startProfilerStart profiling service on target computer
stopProfilerStop profiling service on target computer
addInstrumentAdd instrument object to target object
addInstrumentedSignalsFind instrumented signals and add these to real-time instrument object
addSignalAdd signal for streaming to be available in callback
clearScalarAndLineDataClear data from children of real-time instrument object
connectCallbackAdd callback that responds to new data
connectLineConnect signal for streaming to axes
connectScalarAdd signal for streaming to scalar display
deleteDelete real-time instrument object
generateScriptGenerate script that creates scalar and axes controls from signals, scalars, and lines in real-time instrument object
getBufferedDataGets data from the real-time application instrument buffer
getCallbackDataForSignalGet callback data for a signal in real-time instrument object
removeCallbackRemoved callback from real-time instrument object
removeAllInstrumentsRemove instrument objects from target object
removeInstrumentRemove selected instrument object from target object
removeSignalRemove signal from real-time instrument object
validateValidate signals in instrument object
clearStartupAppClear startup application selection on target computer
getPersistentVariablesGet persistent variables from the Simulink Real-Time target computer to MATLAB
getStartupAppGet information about startup application configuration on target computer
installInstall real-time application on target computer
removeAllApplicationsRemoves all Simulink Real-Time applications from target computer
removeApplicationRemoves Simulink Real-Time application from target computer
setPersistentVariablesSet persistent variables from MATLAB to the Simulink Real-Time target computer
setStartupAppConfigure startup real-time application for target computer
log_traceTrace level status message
log_debugDebug level status message
log_infoInformation level status message
log_warningWarning level status message
log_errorError level status message
log_fatalFatal level status message


Application Preparation and Execution

MATLAB Interface


Troubleshooting in Simulink Real-Time

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