Stateflow | ![]() ![]() |
Resolving Event, Data, and Function Symbols
When you simulate a model, build a target, or generate code for a target, the Stateflow machine is automatically parsed (see Parsing Stateflow Diagrams). During that time, if Stateflow finds that your diagram does not resolve some of its symbols, it uses the following process to determine whether to report parse errors for the unresolved symbols or continue generating code:
The Symbol Autocreation Wizard helps you to add missing data and events to your Stateflow charts. When you parse or simulate a diagram, the Wizard detects references to data and events that are not already defined in the Stateflow Explorer and opens with a list of the recommended data or events that you need to define.
To accept, reject, or change a recommended item, do the following:
When you are satisfied with the proposed symbol definitions, click the Wizard's Create button to add the symbols to Stateflow's data dictionary.
![]() | Parsing Diagram Example | Error Messages | ![]() |