Is the output of the Bus Selector block with the 'Muxed Output' option checked a bus or a mux signal (R14SP2)?
2 views (last 30 days)
Show older comments
If I select the 'Muxed Output' option on a Bus Selector block, the signal sometimes appears as a bus. This seems to occur when:
1. Any of my selected signals are buses themselves.
2. The muxed set of scalars and vectors directly feed a Bus Selector block downstream.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
The intended use of the 'Muxed Output' option is to create buses. This option is mislabeled. With that in mind, signals leaving this block should only feed bus capable blocks.
This option can cause difficulty due to the fact that when an outgoing signal is the same datatype it can be treated as a mux signal. For instance, as an input to a Gain block.
You should treat the output of a Bus Selector block with the mislabeled 'muxed output' option checked as a bus.
If you want a muxed signal, use a Bus Selector block to select the desired signals, which must have the same datatype and be scalars or vectors and connect those signals to a Mux block.
Please refer to the Related Solution for more information.
The option lets you prune one bus to produce another smaller bus.
0 Comments
More Answers (0)
See Also
See Also
Categories
Find more on Sources 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!