Enumerated values in StateFlow chart
10 次查看(过去 30 天)
显示 更早的评论
Hello,
However, when I want to start the simulation, the SymbolWizard popup shows up that tells me that "RED" and "GREEN" are not defined and it wants me to add those signals. This step is not mentioned in the tutorial so I am not quite sure what I am supposed to do. I tried to add them as 'Data' with 'Parameters' Scope but then I cannot execute the simulation either:
Invalid setting in 'Chart' for parameter 'GREEN'
Error evaluating Stateflow parameter data 'GREEN' in its parent workspace.
Undefined function or variable 'GREEN'.
What am I doing wrong? What am I supposed to do with those actual state signals?
I am using Matlab R2014a with StateFlow 8.3
0 个评论
采纳的回答
Orion
2014-11-27
Hi,
Did you check that the data is defined in the explorer and that your chart is configured in C language ?
0 个评论
更多回答(2 个)
Arunkumar Muthukumaran
2015-5-12
Hi, If I change the action language to C and just use the Enumeration Value, will it affect the generated code+?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!