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

조회 수: 33 (최근 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 CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by