Error, when bus selector has specific signal

12 次查看(过去 30 天)
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
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!

类别

Help CenterFile Exchange 中查找有关 Variant Hierarchical Components 的更多信息

标签

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by