MATLAB: Does passing busses through a Switch block generate an error in Simulink 6.0 (R14)

busnamesimulinkswitch

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.

Best Answer

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.