In Simulink, how do I combine 2 function calls into one to trigger a stateflow?
조회 수: 11 (최근 30일)
이전 댓글 표시
I want to trigger at stateflow by two different methods, how do I combine the two function calls?
I've tried a mux block, but then I get the following error "Port width mismatch. Chart is expecting input events signal of length 1. The actual input events signal has length 2."
Any help would be extremely gratefully received.
댓글 수: 2
Haresh Varu
2019년 9월 9일
i am also looking for the same answer. please let ke know if you have found an answer.
Stijn Helsen
2019년 11월 21일
Did you define 2 triggers in your Stateflow diagram? When I try to do this, "he" doesn't complain.
답변 (1개)
Fangjun Jiang
2019년 11월 21일
I would create two boolean signals based on those two methods. Then you can do AND or OR operation and then enable the Stateflow.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!