| Contents | Index |
The target building process takes place as follows:
The charts in your model parse to ensure that their logic is valid.
If any errors are found, diagnostic error messages appear in the Build window, and the building process stops. See Parsing Stateflow Charts for more details.
If your charts parse without error, code generation software generates C code from your charts.
You can specify code generation options when you configure your targets.
Code generation software produces a makefile to build the generated source code into an executable program.
The makefile can optionally build your custom code into the target.
The specified C compiler for the MATLAB environment and a make utility build the code into an application for your target.
![]() | How to Build a Stateflow Custom Target | Parsing Stateflow Charts | ![]() |

Learn how engineers use Stateflow to model state machines in their Simulink models.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |