Error, when bus selector has specific signal

Why do I encounter the following error in Simulink R2022a when the input bus to the "Bus Selector" block contains the specified signal?
Selected signal '<signal>' in the Bus Selector block '<path>/Component_In<number>_SelectorProxy' is not found in the input bus signal.
This error can also occur if an always-false variant block feeds '<path>/Component_In<number>_SelectorProxy'. Consider modifying the variant conditions or setting the Variant activation time for the variant blocks to 'Update Diagram Analyze All Choices'.
Selected signal '<signal>' in the Bus Selector block '<path>/Component_In<number>_SelectorProxy' is not found in the input bus signal.This error can also occur if an always-false variant block feeds '<path>/Component_In<number>_SelectorProxy'. Consider modifying the variant conditions or setting the Variant activation time for the variant blocks to 'Update Diagram Analyze All Choices'.

답변 (1개)

Gayatri
Gayatri 2024년 11월 27일
편집: Gayatri 2024년 11월 27일

0 개 추천

Hi Faisal,
The input signals to the Bus Creator block require explicit labels. If the signals lack proper labels, it triggers an error. The text enclosed in angular brackets on the signals represents propagated signal labels but not the actual signal names.
To resolve this issue, you can either:
  1. Label the Input Signals: Assign proper labels to the signals before connecting them to the Bus Creator block.
  2. Enable Name Verification in Block Parameters: In the Bus Creator block's parameter dialog box, enable the option "Require names of inputs to match names above."
  • This ensures that the input element names match the names listed in the Block Parameters dialog box.
  • If there’s a mismatch, Simulink will return an error, prompting you to resolve the discrepancy.
For more details on 'Bus Creator' and 'Signal Label Propogation', refer to the following documentations:
I hope it helps!

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

제품

릴리스

R2022a

태그

질문:

2024년 11월 27일

편집:

2024년 11월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by