Why can't I propagate my bus signals through a Switch block?

71 次查看(过去 30 天)
I have two bus signals, each created with a "Bus Creator" block. When setting up a "Switch" block to take in my bus signals, I get an error including:
 
===================== ERROR BELOW =====================
Cannot propagate bus signal from output port 1 of 'untitled/Bus Creator' to input port 1 of 'untitled/Switch'

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2020-10-21
"Switch" blocks support bus signals, however there is a limitation: Hierarchies and element names of both bus inputs must be identical.
You have two options to resolve this error:
 
1. Rename the input signals to the "Bus Creator" block so that they match the Bus definition (you may have to do this for both "Bus Creator" blocks)
  2. Un-check the following "Bus Creator" block parameter ("checked" by default):  
  Un-checking the parameter will strictly enforce the output signal names to match the bus definition, regardless of the input signal names.  

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Composite Interfaces 的更多信息

标签

尚未输入任何标签。

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by