Stateflow | ![]() ![]() |
Integrating Custom Code with Stateflow Diagrams
Stateflow allows you to incorporate custom C code into Stateflow diagrams to take advantage of legacy code that augments the simulation capabilities of Simulink and Stateflow. It also allows you to define and include custom global variables that can be shared by both Stateflow generated code and your custom code.
This chapter includes sections for specifying custom code options in Stateflow and how to invoke Stateflow graphical functions from your custom code. For detailed examples, see the following:
![]() | Specifying Code Generation Options | Specifying Custom Code Options | ![]() |