Stateflow | ![]() ![]() |
Generating Code
When you simulate a Simulink model containing Stateflow charts, Stateflow generates a Simulink S-function (sfun
target) that enables Simulink to simulate the Stateflow blocks. The sfun
target can be used only with Simulink. If you have the Stateflow Coder, you can generate stand-alone code suitable for a particular processor. See Chapter 9, Building Targets for more information on code generation.
![]() | Debugging | How Stateflow Works | ![]() |