Using Simulink Clock as a Chart Transition Condition
3 次查看(过去 30 天)
显示 更早的评论
After bringing in the clock I am using its value as a relational operand in a transition condition (t > x). Upon reaching the state with the outbound transition, the clock's value magically jumps from t < x to t > x which makes the condition always true. This is unexpected. I want it to monotonically increase (as usual) until the condition becomes true. How can I make the clock behave differently?
1 个评论
Fangjun Jiang
2019-3-29
Not clear. Are you using a "Clock" block in Simulink and make it as an input to your Stateflow chart, or do you have a counter/timer within the chart?
回答(4 个)
Chuck Rogal
2019-3-29
1 个评论
Fangjun Jiang
2019-3-29
It should not happen like that. Make a simple example showing the problem so you can be helped.
Vignesh
2019-4-1
Can you help us understand the usecase better? Most clock mechanisms could be implemented with absolute time temporal logic, to take transition after certain time interval.
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!