Flow chart runs only once ?
3 次查看(过去 30 天)
显示 更早的评论
Newly I realized the flow chart in the state1 is excuted only one time at state entry. Actually I expected the cnt shall be counted up every loop as long as the state1 is active.
How can I fix it so that the flow chart is called every loop?![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1409534/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1409534/image.png)
I found also the following note. It would mean the observed behavior is intended?
If a Stateflow chart contains only a flow chart, the chart evaluates the flow chart each time the chart wakes up. In contrast, the chart evaluates any flow chart inside a state only during state entry.
0 个评论
回答(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!