How can I change the Debounce time in Stateflow?
이전 댓글 표시
답변 (1개)
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에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
