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.
Functions
| sldrtkernel | Install and remove Simulink Desktop Real-Time kernel | 
| rtwho | Display information about development computer status | 
| sldrtconfigset | Attach and activate default Simulink Desktop Real-Time configuration set | 
| SLDRT.run | Run model in real time by using Simulink Desktop Real-Time kernel (Since R2023b) | 
| createTimer | Create timer in real-time kernel (Since R2023b) | 
| loadExecutable | Load executable into real-time kernel (Since R2023b) | 
| loadDriver | Load driver instance into real-time kernel (Since R2023b) | 
| stop | Stops execution of current model simulation run and causes MATLAB to wait until execution stops (Since R2023b) | 
| wait | Wait for model execution to complete (Since R2023b) | 
Objects
| SLDRT.RunStatus | Get simulation run status and get data from scopes and logged signals (Since R2023b) | 
| RT.Kernel | Get real-time kernel property information and access child object for timers, executables, and drivers (Since R2023b) | 
| RT.Timer | Represent timer in real-time kernel (Since R2023b) | 
| RT.Executable | Represent executable in real-time kernel (Since R2023b) | 
| RT.Driver | Represent device driver in real-time kernel (Since R2023b) | 
| RT.DriverImage | Represent a binary image of device driver for real-time kernel (Since R2023b) | 
Tools
| Board setup | Open a board-specific dialog box to set up the data acquisition board for Simulink Desktop Real-Time | 
Blocks
Model Settings
Topics
Prerequisites
- Install Real-Time Kernel
 Install the Simulink Desktop Real-Time kernel on your development computer.
Configuration
- Prepare for Real-Time Execution
 Transform your Simulink model for interaction with physical I/O devices. - STEP 1: Use I/O Boards
- STEP 2: Use I/O Driver Blocks
- STEP 3: Use Analog I/O Drivers
- STEP 4: Use Vector CAN Drivers
- STEP 5: Use Video Input Driver (macOS)
- STEP 6: Integrate C Code in Custom S-Functions
- STEP 7: Execution Time Measurement and Block Profiling
 







