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

조회 수: 1 (최근 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 CenterFile Exchange에서 Complex Logic에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by