Skip to Main Content Skip to Search
Product Documentation

Rules for Using Enumerated Data in a Stateflow Chart

These rules apply when you use enumerated data in a chart.

 Use the name of the enumerated data type as the name of the MATLAB file that contains the type definition

 Use a unique name for an enumerated data type

 Do not define enumerated data at the machine level of the hierarchy

 Do not use enumerated data for inputs and outputs of exported functions

 Do not assign enumerated values to constant data

 Ensure unique name resolution for nonprefixed identifiers

 Assign to enumerated data only expressions that evaluate to enumerated values

 Use a prefixed identifier to set the initial value of enumerated data

 Do not define minimum or maximum values for enumerated data

 Do not use the ml namespace operator to access enumerated data from the MATLAB base workspace

  


Free Stateflow Interactive Kit

Learn how engineers use Stateflow to model state machines in their Simulink models.


Get free kit

Trials Available

Try the latest version of Stateflow.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS