Why do I get the error "Unable to access the enumeration constant" in Stateflow R2019a?
Show older comments
I have a model containing a Stateflow chart, which uses the enumerated type "BasicColors" in a local Stateflow variable with the same name. The enumerated type is defined in a data dictionary.
The model works fine in R2018b. However, when I tried to run the model in R2019a, I got the error:
Unable to access the enumeration constant 'Red' from a variable. Use the enumeration name: 'BasicColors.Red'.
Transition < '[Basic...action}'
>"BasicColors"
The error message is referring to the following statement in a transition condition:
BasicColors == BasicColors.Red
Accepted Answer
More Answers (0)
Categories
Find more on Stateflow in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!