Hi. Could someone please assist me in resolving this issue?

4 ビュー (過去 30 日間)
Danikha Shyken
Danikha Shyken 2023 年 9 月 17 日
コメント済み: Danikha Shyken 2023 年 9 月 26 日

採用された回答

Shivang
Shivang 2023 年 9 月 25 日
Hi Danikha,
I understand you’re running into an error while working with the Switch block in your model.
Based on the error message, I suspect you’re passing bus signals to the data inputs (the first and the third input), of the Switch block.
Further, you’re passing a signal of width 2 to the control input (the second input) of the Switch block. You can verify this by running the control signal through a Width block.
As the error message indicates, Simulink requires the control signal to be a scalar when bus signals are passed as data inputs.
You will need to convert the control signal to a scalar. This can be done using the Selector and/or the Bus Selector blocks, depending on the type of the control signal.
Hope this helps!
-Shivang
  1 件のコメント
Danikha Shyken
Danikha Shyken 2023 年 9 月 26 日
Thanks for your response; it's clarified things for me.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by