Main Content

Creation and Execution of Real-Time Application with MATLAB

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.

Objects

TargetRepresent real-time application and target computer status
ApplicationRepresent application files on development computer
InstrumentCreate real-time instrument object
SystemLogGet current console log from target computer

Functions

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
addInstrumentAdd instrument object to target object
loadDeploy to target and load real-time application to target computer
rtwbuildBuild generated code from a model
getparamRead value of observable parameter in real-time application
setStopTimeConfigure stop time for real-time application
setparamChange value of tunable parameter in real-time application
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
abortAbort file log data import from target computer
discardDelete file log data from target computer
listGet information about available file logs of signal data
importImport file log data from target computer
enableStart file logging of signal data
disableStop file logging of signal data
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
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
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
getStartupAppGet information about startup application configuration on target computer
installInstall real-time application on target computer
setStartupAppConfigure startup real-time application for target computer

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.

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.

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.

Troubleshooting

Troubleshooting in Simulink Real-Time

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