Why does passing busses through a Switch block generate an error in Simulink 6.0 (R14)?

43 views (last 30 days)
I would like to toggle between two busses that I pass through a Switch block. When I attempt to do this, I receive the following error:
'bus_switch/Bus Selector' must be connected to a Bus Creator, Bus Selector or a block that outputs a bus using a bus object. It can also be connected to bus capable blocks that meet the conditions for supporting buses provided the bus entering the block has been created by using a bus creator
I thought that busses could pass through Switch blocks.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
Busses can pass through Switch blocks when the signal names on both busses are the same. This is because downstream of the Switch block, Bus Selectors will reference signals out of the bus by name. In order to be able to switch between busses upstream, the names need to be the same such that the signal selections are still valid.
Different signals can have the same name as long as the signals are using Auto Storage Class.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!