Simulink Coder
Product Description
- Introduction and Key Features
- Selecting and Working with Targets
- Defining and Controlling Data
- Generating Code
- Executing Code in a Real-Time Environment
- Tuning Parameters and Logging Data
Generating Code
Simulink Coder offers comprehensive code generation support for Simulink and Stateflow features and components, including:
- Model blocks for generating code incrementally
- Atomic subsystems and atomic subcharts for reusing code via reentrant C functions
- Bus objects and arrays of buses for generating structures in your code
- S-functions for simulating and interfacing with legacy code
- MATLAB function blocks in Simulink and MATLAB functions in Stateflow for generating code from models with MATLAB components
Simulink Coder also supports the Simulink product family, including fixed-point modeling, physical modeling, signal processing and communications modeling, and rapid prototyping and hardware-in the-loop (HIL) testing products.
Code Generation Options
Simulink Coder provides user-selectable options to facilitate execution of generated code in desktop and simulation environments. These options include:
- Code reuse
- Expression folding
- Signal storage reuse
- Dead path elimination
- Parameter inlining
- Single-precision and prebuilt math libraries (including ISO C and GNU C)
