Why can't I propagate my bus signals through a Switch block?
71 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2020-5-16
编辑: MathWorks Support Team
2020-10-21
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
2020-10-21
编辑: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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Composite Interfaces 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!