Simulink Desktop Real-Time
Run Simulink models in real time on your computer
Have questions? Contact sales.
Have questions? Contact sales.
Simulink Desktop Real-Time™ provides a real-time kernel for executing Simulink® models on a laptop or desktop running Windows® or macOS®. It includes library blocks that connect to certain I/O devices. You can create a real-time system in Simulink with your PC or Mac computer and connect it to physical devices.
Refer to Simulink Real-Time™ for high performance real-time simulation and testing with Speedgoat™ target computer hardware.
Simulink Desktop Real-Time includes a real-time kernel that runs at the highest priority on your operating system. This real-time kernel loads I/O device drivers and establishes a connection with Simulink. The I/O device drivers execute in real time, in parallel with a Simulink simulation in normal mode.
Use Simulink Coder to generate code for your algorithm model and link it with I/O device driver. The model, solver, and I/O device drivers all execute in real time. MATLAB Coder is required for Simulink Coder installation. Compiler support is included as part of the Simulink Desktop Real-Time installation. No additional or external C or C++ compiler is required.
Using Simulink Desktop Real-Time with Simulink, you can capture signals from the real-time model and display them with standard Simulink Scope blocks. You can view signals within the model using graphical displays, such as gauges, scopes, and lamps.
You can store run-time data in the MATLAB workspace using Simulink. In external mode, you can capture one or more data bursts and save the data to a MATLAB file, which can be accessed in MATLAB for additional analysis and visualization.
Simulink Desktop Real-Time includes a library of I/O driver blocks that provide connections between physical I/O devices and real-time models. You can run simulations to observe how Simulink models respond to real-world behavior.
Simulink Desktop Real-Time I/O driver blocks enable communication using either ASCII or binary data. Supported communication protocols include UDP for standard network connections, RS-232 for serial lines, and CAN bus for controller area networks.