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

12 views (last 30 days)
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 Comments
Joshua Zimmerman
Joshua Zimmerman on 30 Nov 2023
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 on 30 Nov 2023
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.

Sign in to comment.

Accepted Answer

Joshua Zimmerman
Joshua Zimmerman on 30 Nov 2023
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.

More Answers (0)

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!