Main Content

Model Preparation for Real-Time Simulation

Predefined and custom I/O driver blocks, code generation parameters, real-time kernel

A library of I/O driver blocks provides connections between physical I/O devices and real-time models. To observe how Simulink® models respond to real-world behavior, use the Simulink Desktop Real-Time™ block library to create a real-time application from a Simulink model. Set the model configuration parameters to values consistent with real-time execution. The real-time application runs on your computer with the Simulink Desktop Real-Time kernel. See Prepare for Real-Time Execution.


sldrtkernelInstall and remove Simulink Desktop Real-Time kernel
rtwhoDisplay information about development computer status
sldrtconfigsetAttach and activate default Simulink Desktop Real-Time configuration set


expand all

Analog InputRead from one or multiple analog input channels
Analog OutputWrite to one or multiple analog output channels
Counter InputRead from one or multiple counter-input channels
Encoder InputRead from one or multiple incremental encoder input channels
Frequency OutputWrite to one or multiple frequency or PWM output channels
Digital InputRead from one or multiple digital input channels
Digital OutputWrite to one or multiple digital output channels
ThingSpeak InputRead input fields from ThingSpeak channel
ThingSpeak OutputWrite output fields to ThingSpeak channel
Packet InputRead binary data or a CAN message from a communication channel
Packet OutputWrite binary data or a CAN message to a communication channel
Servo OutputWrite to standard servo output channels
Stream InputRead formatted ASCII data from communication channel
Stream OutputWrite formatted ASCII data to communication channel
Other InputRead from one or more input channels not handled by specific blocks
Other OutputWrite to one or more output channels not handled by specific blocks
Real-Time SyncSynchronize model execution to real time in normal mode or accelerator mode
Execution TimeOutput total execution time in external mode
TimestampOutput signal timestamp in external mode

Simulink Configuration Parameters



Install Real-Time Kernel

Install the Simulink Desktop Real-Time kernel on your development computer.

Related Information

Featured Examples