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 nonreal-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™.
Simulink Coder lets you configure code and data options using apps and APIs. Use Code Generation Advisor to optimize for speed or debugging.
Viewing the Status of Parallel Builds
You can view the status of in-progress parallel builds using the build status user interface. This information can help you identify ways to improve parallel builds by modifying the referenced model hierarchy.
Deploying to Embedded Targets
Run code from your models on supported embedded targets for project-based learning, using a library of I/O blocks for configuring and accessing peripherals and communication interfaces.
External Mode Simulation with XCP Communication
Simulink Coder supports signal logging and streaming via Dashboard blocks and the Simulation Data Inspector. You can stream signals from a model hierarchy over XCP, TCP/IP, and serial (RS-232) communication.
Host-Based ASAP2 Data Exchange
Generate host-based ASAP2 data definition files for use in third-party data measurement, calibration, and diagnostic systems.
Data Exchange Between Generated and Hand-Written Code
Access Simulink block outputs and MATLAB parameters from hand-written code using a target-based C API.
Support for Concurrent Execution
Deterministic mode for the Rate Transition block support for concurrent execution
Streamlined Data Configuration
Configure model data for code generation using Code Mappings editor in Simulink® Coder™ app or code mappings API
C++11 Standard Math Library
Generate C++ libraries and executable programs for Simulink models that use ISO®/IEC 14882:2011(E) standard math library
Code Generation Performance
Generate code faster for model reference hierarchies
Separation of Code Generation and Compilation
codebuild function to compile generated code on different operating system or with different compiler
Intel C and C++ Toolchain Support for Windows
Compile generated code using Intel® C and C++ compilers for Windows®
Reusable Subsystem Model Advisor Checks
Check that reusable subsystems meet standards for code generation
Deep Learning Network for Intel and Arm Processors
Generate C++ code and execute deep learning networks