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 个)
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:
- Label the Input Signals: Assign proper labels to the signals before connecting them to the Bus Creator block.
- 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:
- Bus Creator: https://www.mathworks.com/help/releases/R2022a/simulink/slref/buscreator.html#:~:text=Require%20names%20of%20inputs%20to%20match%20names%20above%20%E2%80%94%20Option%20to%20check%20that%20input%20element%20names%20match%20names%20listed%20in%20dialog%20box
- Signal Label Propogation: https://www.mathworks.com/help/releases/R2022a/simulink/ug/signal-label-propagation.html
I hope it helps!
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!