Documentation

Simulink Real-Time Functions

Alphabetical List By Category

System Configuration

Development and Target Computer Setup

Real-Time Application Represent real-time application and target computer status
slrt Create object that manages target computer
slrtexplr Configure target computer and real-time application for execution
slrttest Test Simulink Real-Time installation
SimulinkRealTime.addTarget Add new Simulink Real-Time target object
SimulinkRealTime.removeTarget Remove environment data associated with target name
SimulinkRealTime.targetSettings.setAsDefaultTarget Set specific target computer environment object as default
SimulinkRealTime.utils.minimumSampleTime Determine the minimum sample time at which a model can run
SimulinkRealTime.getTargetSettings Get target computer environment settings
SimulinkRealTime.getSupportInfo Diagnostic information to troubleshoot configuration issues
SimulinkRealTime.target Create object representing real-time application on target computer
SimulinkRealTime.target.getPCIInfo Return information about PCI boards installed in target computer

Model Preparation

I/O Modules

Displays and Logging

SimulinkRealTime.utils.getFileScopeData Read real-time Scope file format data
SimulinkRealTime.utils.bytes2file Generate file for use by real-time From File block

Target Management

Target I/O Management
SimulinkRealTime.utils.getFileScopeData Read real-time Scope file format data
SimulinkRealTime.utils.bytes2file Generate file for use by real-time From File block

Communication Protocols

Precision Time Protocol

SimulinkRealTime.utils.getTargetSystemTime Gets the current value of the target computer system clock
SimulinkRealTime.utils.setTargetSystemTime Sets the value of the target computer system clock

RS-232

fc422mexcalcbits Calculate parameter values for Fastcom 422/2-PCI board
macaddr Convert character vector-based MAC address to vector-based address

External Code Integration

Custom I/O Drivers

Custom Driver
slrtdrivertool Construct skeleton for custom driver
Interrupt Support
PostHook Run after return from interrupt service routine function-call subsystem or after sending wake-up call to model thread
PreHook Run just before the interrupt service routine
Start Run as the last item in mdlStart
Stop Run at the beginning of mdlTerminate
Simulink Real-Time Driver Authoring Tool
slrtdrivertool Construct skeleton for custom driver

Real-Time Application Creation and Execution

Build Real-Time Application

slrtexplr Configure target computer and real-time application for execution

Run Real-Time Application

Real-Time Application Represent real-time application and target computer status
Crash Info Retrieve information about a target computer CPU exception
slrt Create object that manages target computer
slrtexplr Configure target computer and real-time application for execution
SimulinkRealTime.target Create object representing real-time application on target computer
SimulinkRealTime.target.viewTargetScreen Open real-time window on development computer

Instrumentation

Signal Monitoring and Tracing with Simulink Real-Time Explorer

slrtexplr Configure target computer and real-time application for execution
SimulinkRealTime.utils.createInstrumentationModel Construct skeleton for user interface model

Signal Logging with Simulink Real-Time Explorer

slrtexplr Configure target computer and real-time application for execution

Parameter Tuning with Simulink Real-Time Explorer

slrtexplr Configure target computer and real-time application for execution

Real-Time Application Instruments with Simulink Real-Time Explorer

slrtexplr Configure target computer and real-time application for execution

Standalone Operation

Standalone Target Computer Setup

slrtexplr Configure target computer and real-time application for execution

Export and Run Explorer Configuration as Standalone Executable

slrtexplr Configure target computer and real-time application for execution

Deploy MATLAB Application as Standalone Executable

mcrinstaller Display version and location information for MATLAB Runtime installer corresponding to current platform
mcrversion Determine version of installed MATLAB Runtime
mcc Compile MATLAB functions for deployment

Performance Optimization

Profiling and Optimization

profile_slrt Collect profiling data
SimulinkRealTime.utils.minimumSampleTime Determine the minimum sample time at which a model can run

Concurrent Execution with Multicore Target Computer

profile_slrt Collect profiling data
SimulinkRealTime.utils.minimumSampleTime Determine the minimum sample time at which a model can run

Control and Instrumentation From MATLAB

System Configuration with MATLAB

Real-Time Application Represent real-time application and target computer status
slrt Create object that manages target computer
slrtgetCC Compiler settings for development computer environment
slrtsetCC Compiler settings for development computer environment
SimulinkRealTime.createBootImage Create Simulink Real-Time boot disk or DOS Loader files
slrtpingtarget Test communication between development and target computers
SimulinkRealTime.pingTarget Test communication between development and target computers
SimulinkRealTime.getTargetSettings Get target computer environment settings
SimulinkRealTime.getSupportInfo Diagnostic information to troubleshoot configuration issues
SimulinkRealTime.targetSettings.setAsDefaultTarget Set specific target computer environment object as default
SimulinkRealTime.target Create object representing real-time application on target computer
SimulinkRealTime.target.getPCIInfo Return information about PCI boards installed in target computer
macaddr Convert character vector-based MAC address to vector-based address

Creation and Execution of Real-Time Application with MATLAB

Real-Time Application Represent real-time application and target computer status
Crash Info Retrieve information about a target computer CPU exception
rtwbuild Initiate build process
slrt Create object that manages target computer
SimulinkRealTime.createBootImage Create Simulink Real-Time boot disk or DOS Loader files
slrtpingtarget Test communication between development and target computers
SimulinkRealTime.target Create object representing real-time application on target computer
SimulinkRealTime.target.viewTargetScreen Open real-time window on development computer

Signal Monitoring and Tracing with MATLAB

Real-Time Host Scope Display time-domain data on development computer screen
Real-Time Target Scope Display time-domain data on target computer
Real-Time Application Represent real-time application and target computer status
SimulinkRealTime.target.addscope Create a scope of specified type
SimulinkRealTime.target.getscope Return scope identified by scope number
SimulinkRealTime.target.remscope Remove scope from target computer
SimulinkRealTime.target Create object representing real-time application on target computer

Signal Logging with MATLAB

Real-Time File Scope Record time-domain data on target computer file system
Real-Time Application Represent real-time application and target computer status
File System Manage folders and files on target computer
SimulinkRealTime.target.addscope Create a scope of specified type
SimulinkRealTime.target.getscope Return scope identified by scope number
SimulinkRealTime.target.remscope Remove scope from target computer
SimulinkRealTime.target Create object representing real-time application on target computer

Parameter Tuning with MATLAB

Real-Time Application Represent real-time application and target computer status
slrt Create object that manages target computer
SimulinkRealTime.target Create object representing real-time application on target computer
SimulinkRealTime.target.viewTargetScreen Open real-time window on development computer
Was this topic helpful?