Documentation

Simulink Real-Time Functions

Alphabetical List By Category

System Configuration

Development and Target Computer Setup

Using Real-Time Application Objects Represent real-time application and target computer status
slrt Create object to manage 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 string-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
Using the 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

Using Real-Time Application Objects Represent real-time application and target computer status
slrt Create object to manage 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

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

Signal Logging

slrtexplr Configure target computer and real-time application for execution

Parameter Tuning

slrtexplr Configure target computer and real-time application for execution

Real-Time Application Instruments

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 Using 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 Using MATLAB

Using Real-Time Application Objects Represent real-time application and target computer status
slrt Create object to manage 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 string-based MAC address to vector-based address

Creation and Execution of Real-Time Application Using MATLAB

Using Real-Time Application Objects Represent real-time application and target computer status
rtwbuild Initiate build process
slrt Create object to manage 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 Using MATLAB

SimulinkRealTime.targetScope Control and access properties of target scopes
SimulinkRealTime.hostScope Control and access properties of host scopes
Using Real-Time Application Objects 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 Using MATLAB

SimulinkRealTime.fileScope Control and access properties of file scopes
Using Real-Time Application Objects Represent real-time application and target computer status
Using File System Objects 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 Using MATLAB

Using Real-Time Application Objects Represent real-time application and target computer status
slrt Create object to manage 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?