Main Content

Get Started with Simulink Coder

Generate C and C++ code from Simulink and Stateflow models

Simulink® Coder™ (formerly Real-Time Workshop®) generates and executes C and C++ code from Simulink models, Stateflow® charts, and MATLAB® functions. The generated source code can be used for real-time and non-real-time applications, including simulation acceleration, rapid prototyping, and hardware-in-the-loop testing. You can tune and monitor the generated code using Simulink or run and interact with the code outside MATLAB and Simulink.

Tutorials

Code Generation from Simulink Models

Videos

What is Simulink Coder?
Generate and deploy code for rapid prototyping, hardware-in-the-loop testing, and desktop prototyping.

External Mode Simulation with XCP Communication
Establish a communication channel between your Simulink model and the target hardware by using external mode simulation.