Include custom code for simulation and code generation
By incorporating custom code written in C or C++, augment the capabilities of your Stateflow® chart and take advantage of your preexisting code.
- Reuse Custom Code in Stateflow Charts
Integrate preexisting custom code into Simulink® models.
- Configure Custom Code in Library Models
Use custom code for simulation and code generation in library models.
- Access Custom Code Variables and Functions in Stateflow Charts
Call custom code functions from your Stateflow charts.