MATLAB Answers

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

조회 수: 10(최근 30일)
Paul Douglas
Paul Douglas 3 Oct 2013
Answered: Fangjun Jiang 21 Nov 2019
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 9 Sep 2019
i am also looking for the same answer. please let ke know if you have found an answer.
Stijn Helsen
Stijn Helsen 21 Nov 2019
Did you define 2 triggers in your Stateflow diagram? When I try to do this, "he" doesn't complain.

로그인 to comment.

답변 수 (1)

Fangjun Jiang
Fangjun Jiang 21 Nov 2019
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

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.

태그

제품


Translated by