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

12 次查看(过去 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.

回答(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