If u1>3, move on to the next condition. When sampling time is 1 second, if u1>3 for 3 seconds by de-bouncing method, we want to move on to the next condition. If u1 >3 in 1 second, but u1 < 3 in 2 seconds, the next condition is not passed.

답변 (1개)

Muthukumar Ganesan
Muthukumar Ganesan 2022년 8월 21일

0 개 추천

Hi,
Using stateflow, you can implement this with after function whereas using simulink counter logic has to be implemented.
Please find the attachements.
Thanks

카테고리

도움말 센터 및 File Exchange에서 Stateflow에 대해 자세히 알아보기

제품

릴리스

R2021b

질문:

2022년 8월 10일

답변:

2022년 8월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by