Why can't I propagate my bus signals through a Switch block?
77 views (last 30 days)
Show older comments
MathWorks Support Team
on 16 May 2020
Edited: MathWorks Support Team
on 21 Oct 2020
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'
Accepted Answer
MathWorks Support Team
on 21 Oct 2020
Edited: MathWorks Support Team
on 21 Oct 2020
"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 Comments
More Answers (0)
See Also
Categories
Find more on Composite Interfaces in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!