"Unable to find selected signal" error for bus in Simulink, but when I open the bus selector everything shows up correctly.

22 ビュー (過去 30 日間)
I have a large complex model I am working on. When I hit ctrl+d to update the model I get the error:
However whe I select the bus everything shows up correctly:
The bus is created using the bus creator block. I thought it might be related if/else blocks and merge blocks, but I created a simple model using these blocks and had no issues with the bus. Any ideas?
  3 件のコメント
Joshua Zimmerman
Joshua Zimmerman 2023 年 11 月 30 日
Thanks for the quick response Ravi. I had tried saving, rebooting etc but with no success. See my answer where I found the problem.
madhan ravi
madhan ravi 2023 年 11 月 30 日
That’s a strange way to comment a block in which a signal propagates through it. Anyway I wouldn’t recommend doing it. Even if it doesn’t directly affect the functionality of what you want to do. Good that you found out the reason.

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

採用された回答

Joshua Zimmerman
Joshua Zimmerman 2023 年 11 月 30 日
Ok, I guess I should have done a little more debugging before posting, but maybe this will be helpful to others. It turns out Simulink doesn't like you to comment through a block and then put that signal in a bus. I had several signal like below populating the bus. For some reason the bus creator and selector blocks have no issue with it, but when I do ctrl+d there is a problem but simulink debugging doesn't point me to the problem. When I removed all these commented blocks the issue went away.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by