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.
Was this topic helpful?
Select Your Country
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list: