Get Started with Simulink Coder
Simulink® Coder™ 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.
To share your Simulink simulations as standalone executables, web apps, or Functional Mockup Units (FMUs), use Simulink Compiler™.
Tutorials
Prepare a model for code generation and generate C code for real-time simulation.
Code Generation from Simulink Models
- Code Generation Using Simulink Coder
Generate standalone C or C++ source code from Simulink models that can include Simulink blocks, Stateflow charts, and MATLAB code.
- Validation and Verification for System Development
Validate and verify steps in the system development process, such as requirements analysis, system specification, code generation, and software and system integration.
- Target Environments and Applications
Choose a system target file for generating, building, and executing code for target environments, such as development computers, real-time simulators, and embedded processors.
- Code Generation Goal Summary
Find information relevant to your project goals.
- Customize Code Generation Environment
Customize code generation environment for a project or organization.
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.