Resolving Event, Data, and Function Symbols in Stateflow® Action Language

Resolving Symbols

When you simulate a model, build a target, or generate code for a target, you automatically parse the Stateflow® machine (see Parsing Stateflow® Charts). During that time, if your chart does not resolve some of its symbols, the following process determines whether to report parse errors for the unresolved symbols or to continue generating code.

For information about Simulink® symbol resolution, see Resolving Symbols and Hierarchical Symbol Resolution in the Simulink documentation.

Symbol Autocreation Wizard

You can use the Symbol Autocreation Wizard to add missing data and events to your Stateflow charts. When you parse or simulate a chart, the Wizard detects references to undefined data and events and presents a list of the recommended data or events that you must define.

To accept, reject, or change a recommended item, do one of these steps:

After you finish editing the symbol definitions, click Create to add the symbols to the Stateflow hierarchy.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS