switch case
20 ビュー (過去 30 日間)
古いコメントを表示
i need help here...to run a system in simulink an error is showed : Port 2 of 'final/Subsystem4/Subsystem2/Switch Case' can only be connected to an action subsystem and may not be connected to more than one action subsystem....if possible plz help me here.....
0 件のコメント
採用された回答
Fangjun Jiang
2011 年 10 月 28 日
The message is clear. The output of the "Switch Case" block can only be connected to one (and only one) "Switch Case Action Subsystem" block, which can be found in library "Ports & Subsystems". Remember to connect the "Action Port", not the "Inport".
Open sl_subsys_sw1.mdl to see an example.
0 件のコメント
その他の回答 (1 件)
shahid Alam
2011 年 10 月 28 日
2 件のコメント
Fangjun Jiang
2011 年 10 月 28 日
The output of the "Switch Case" block is a trigger. It can only trigger one subsystem. If you need to trig more than one, you can probably put all the things that you want to trig inside the "Switch Case Action Subsytem".
You can add as many Inport blocks as you want.
ahmed al-kady
2015 年 11 月 9 日
please i need to reset the switch case after triggering another case, as it hold the output even if the input signal is changed. thanks in advance.
参考
カテゴリ
Help Center および File Exchange で Schedule Model Components についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!