Documentation

Simulink Real-Time Functions

Alphabetical List By Category

System Configuration

Development Computer Setup

mexBuild MEX function from C/C++ or Fortran source code
slrtgetCCCompiler settings for development computer environment
slrtsetCCCompiler settings for development computer environment

Target Computer Setup

Real-Time ApplicationRepresent real-time application and target computer status
slrtInterface for managing target computer
slrtexplrConfigure target computer and real-time application for execution
slrttestTest Simulink Real-Time installation
SimulinkRealTime.addTargetAdd target computer interface
SimulinkRealTime.removeTargetRemove target computer interface
SimulinkRealTime.targetSettings.setAsDefaultTargetSet specific target computer as default target computer
SimulinkRealTime.utils.minimumSampleTimeDetermine the minimum sample time at which a model can run
SimulinkRealTime.getTargetSettingsGet target computer environment settings
SimulinkRealTime.getSupportInfoDiagnostic information to troubleshoot configuration issues
SimulinkRealTime.targetInterface for managing target computer
SimulinkRealTime.target.getPCIInfoReturn information about PCI boards installed in target computer
SimulinkRealTime.utils.getConsoleLogRetrieve the log that the kernel writes to the target computer screen

Model Preparation for Real-Time Execution

Parameters and Procedures

ApplicationRepresent application files on development computer
SimulinkRealTime.ApplicationCreate object that represents application files on development computer
SimulinkRealTime.Application.updateRootLevelInportDataReplace external input data in a real-time application with new input data

I/O Connectivity

Displays and Logging

Real-Time ApplicationRepresent real-time application and target computer status
Profiler DataContains data returned from profiler
SimulinkRealTime.utils.getFileScopeDataRead real-time Scope file format data
SimulinkRealTime.utils.bytes2fileGenerate file for use by real-time From File block
SimulinkRealTime.target.startProfilerStart profiling service on target computer
SimulinkRealTime.target.stopProfilerStop profiling service on target computer
SimulinkRealTime.target.getProfilerDataRetrieve profile data object
SimulinkRealTime.target.resetProfilerReset profiling service state to Ready

Target Management

Target I/O Management
SimulinkRealTime.utils.getFileScopeDataRead real-time Scope file format data
SimulinkRealTime.utils.bytes2fileGenerate file for use by real-time From File block

Communication Protocols

EtherCAT

SimulinkRealTime.etherCAT.filterNotificationsDisplay EtherCAT notifications in human-readable format

IEEE 1588 Precision Time Protocol

SimulinkRealTime.utils.getTargetSystemTimeGets the current value of the target computer system clock
SimulinkRealTime.utils.setTargetSystemTimeSets the value of the target computer system clock

RS-232

fc422mexcalcbitsCalculate parameter values for Fastcom 422/2-PCI board
macaddrConvert character vector-based MAC address to vector-based address

Real-Time Application Creation and Execution

Build Real-Time Application

ApplicationRepresent application files on development computer
slrtexplrConfigure target computer and real-time application for execution
SimulinkRealTime.ApplicationCreate object that represents application files on development computer
SimulinkRealTime.Application.updateRootLevelInportDataReplace external input data in a real-time application with new input data

Run Real-Time Application

Real-Time ApplicationRepresent real-time application and target computer status
Crash InfoRetrieve information about a target computer CPU exception
ApplicationRepresent application files on development computer
slrtInterface for managing target computer
slrtexplrConfigure target computer and real-time application for execution
SimulinkRealTime.targetInterface for managing target computer
SimulinkRealTime.target.viewTargetScreenOpen real-time window on development computer
SimulinkRealTime.ApplicationCreate object that represents application files on development computer
SimulinkRealTime.Application.updateRootLevelInportDataReplace external input data in a real-time application with new input data

Control and Instrumentation

Signal Monitoring and Tracing with Simulink Real-Time Explorer

slrtexplrConfigure target computer and real-time application for execution
SimulinkRealTime.utils.createInstrumentationModelConstruct skeleton for user interface model

Signal Logging with Simulink Real-Time Explorer

slrtexplrConfigure target computer and real-time application for execution

Parameter Tuning with Simulink Real-Time Explorer

slrtexplrConfigure target computer and real-time application for execution

Real-Time Application Instruments with Simulink Real-Time Explorer

slrtexplrConfigure target computer and real-time application for execution

Control and Instrumentation with MATLAB

System Configuration with MATLAB

Real-Time ApplicationRepresent real-time application and target computer status
slrtInterface for managing target computer
slrtgetCCCompiler settings for development computer environment
slrtsetCCCompiler settings for development computer environment
SimulinkRealTime.createBootImageCreate Simulink Real-Time boot disk or DOS Loader files
slrtpingtargetTest communication between development and target computers
SimulinkRealTime.pingTargetTest communication between development and target computers
SimulinkRealTime.getTargetSettingsGet target computer environment settings
SimulinkRealTime.getSupportInfoDiagnostic information to troubleshoot configuration issues
SimulinkRealTime.targetSettings.setAsDefaultTargetSet specific target computer as default target computer
SimulinkRealTime.targetInterface for managing target computer
SimulinkRealTime.target.getPCIInfoReturn information about PCI boards installed in target computer
macaddrConvert character vector-based MAC address to vector-based address

Creation and Execution of Real-Time Application with MATLAB

Real-Time ApplicationRepresent real-time application and target computer status
Crash InfoRetrieve information about a target computer CPU exception
ApplicationRepresent application files on development computer
rtwbuildBuild generated code from a model
slrtInterface for managing target computer
SimulinkRealTime.createBootImageCreate Simulink Real-Time boot disk or DOS Loader files
slrtpingtargetTest communication between development and target computers
SimulinkRealTime.targetInterface for managing target computer
SimulinkRealTime.target.viewTargetScreenOpen real-time window on development computer
SimulinkRealTime.ApplicationCreate object that represents application files on development computer
SimulinkRealTime.Application.updateRootLevelInportDataReplace external input data in a real-time application with new input data

Signal Monitoring and Tracing with MATLAB

Real-Time ApplicationRepresent real-time application and target computer status
Real-Time Host ScopeDisplay time-domain data on development computer screen
Real-Time Target ScopeDisplay time-domain data on target computer
SimulinkRealTime.target.addscopeCreate a scope of specified type
SimulinkRealTime.target.getscopeReturn scope identified by scope number
SimulinkRealTime.target.remscopeRemove scope from target computer
SimulinkRealTime.targetInterface for managing target computer

Signal Logging with MATLAB

Real-Time ApplicationRepresent real-time application and target computer status
Real-Time File ScopeRecord time-domain data on target computer file system
File SystemManage folders and files on target computer
SimulinkRealTime.target.addscopeCreate a scope of specified type
SimulinkRealTime.target.getscopeReturn scope identified by scope number
SimulinkRealTime.target.remscopeRemove scope from target computer
SimulinkRealTime.targetInterface for managing target computer

Parameter Tuning with MATLAB

Real-Time ApplicationRepresent real-time application and target computer status
slrtInterface for managing target computer
SimulinkRealTime.targetInterface for managing target computer
SimulinkRealTime.target.viewTargetScreenOpen real-time window on development computer

Standalone Operation

Standalone Target Computer Setup

slrtexplrConfigure target computer and real-time application for execution

Export and Run Explorer Configuration as Standalone Executable

slrtexplrConfigure target computer and real-time application for execution

Deploy MATLAB Application as Standalone Executable

mcrinstallerDisplay version and location information for MATLAB Runtime installer corresponding to current platform
mcrversionDetermine version of installed MATLAB Runtime
mccCompile MATLAB functions for deployment

Performance Optimization

Profiling and Optimization

Real-Time ApplicationRepresent real-time application and target computer status
Profiler DataContains data returned from profiler
SimulinkRealTime.target.startProfilerStart profiling service on target computer
SimulinkRealTime.target.stopProfilerStop profiling service on target computer
SimulinkRealTime.target.getProfilerDataRetrieve profile data object
SimulinkRealTime.target.resetProfilerReset profiling service state to Ready
SimulinkRealTime.utils.minimumSampleTimeDetermine the minimum sample time at which a model can run
plotGenerate profiler plot
reportGenerate profiler report

Concurrent Execution with Multicore Target Computer

SimulinkRealTime.utils.minimumSampleTimeDetermine the minimum sample time at which a model can run
Was this topic helpful?