Create an index with stateflow that only increments one at the time

3 ビュー (過去 30 日間)
Pedro Marques
Pedro Marques 2021 年 3 月 8 日
コメント済み: Pedro Marques 2021 年 3 月 9 日
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
Walter Roberson 2021 年 3 月 9 日
Unfortunately I do not have enough experience to interpret that chart, but it does not look right to me.
Pedro Marques
Pedro Marques 2021 年 3 月 9 日
I just divid the actions into two but it works the way I wanted.
Thank you for your help!

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDecision Logic についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by