In Simulink, how do I combine 2 function calls into one to trigger a stateflow?

조회 수: 11 (최근 30일)
Paul Douglas
Paul Douglas 2013년 10월 3일
답변: Fangjun Jiang 2019년 11월 21일
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
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
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
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.

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by