- initial counter value 0
- if the initial value of the state is High, set the counter value to 1
- after that, increment the counter only when it goes from low to high ?
Create an index with stateflow that only increments one at the time
1 次查看(过去 30 天)
显示 更早的评论
Hi there,
Im trying to build a index with stateflow, but I want to increment only once when the input signal is high and again when it goes from low to high.
I have done this with blocks but now I want to use a stateflow chart.
Any suggestion?
4 个评论
Walter Roberson
2021-3-9
Unfortunately I do not have enough experience to interpret that chart, but it does not look right to me.
回答(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!