Mux elements of multiple (same structure) busses together for scope (dynamic)

1 view (last 30 days)
Hi, assume I have two busses with elements a and b each. I would like to scope these values in two subplots where in the upper one both a elements are plotted and in the bottom both b values. I want the structure to be in such a way, that if I were to add a third bus of the same structure, a third set of a and b elements is added to the same respective subplots automatically. Is there a way to achieve this?
Currently, I have to use bus selectors and muxes for each bus and element to get them back together in this fashion*. Arrays of buses look interesting, however I have not found a way to mux bus elements and feed that to a scope in some way without having to manually expand each mux for each bus element when I add a third bus.
*for each bus: bus selector to get all elements. Then Use mux on each element type of all busses to create one mux'ed signal per bus element type to be fed to a scope input.

Answers (0)

Categories

Find more on Simulink Environment Customization 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!