How can I change the Debounce time in Stateflow?

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2023년 10월 11일
편집: Fangjun Jiang 2023년 10월 11일

0 개 추천

Typically, the value "5" in the two "after(5,sec)" statements is the time that the switch state needs to stay (without bounce) before it permently becomes "On" or "Off " state. You can change the value direcyly there or use a variable.
5 seconds sounds really long for a switch debounce. Mostly common ones are less than 1 second. after(800,msec)
Or, it could be a "press and hold" button. Press and hold for more than 5 seconds to turn it on. Press and hold for more than 5 seconds to turn it off.

카테고리

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

제품

릴리스

R2023a

질문:

2023년 10월 10일

편집:

2023년 10월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by