If you add prefixes to enumerated names in the generated code,
you enhance readability and avoid name conflicts with global symbols.
For details, see Use Enumerated Data in Generated Code in the Simulink® Coder™ documentation.
This guideline prevents name conflicts with other objects in
a chart. If an enumerated value uses the same identifier as a data
object in a state or a bus field in a chart, the chart does not resolve
the identifier as an enumerated value.
For example, the following diagram shows the stages in which
a chart tries to resolve the identifier Colors.Red.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.