This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Modeling Arrays of Buses

This example illustrates the use of arrays of buses in Simulink® to represent structured data compactly, eliminating the need to include multiple copies of the same buses.You can also use For Each subsystems to iteratively process each element of the bus array.

In this example, the array of buses is created using a Vector Concatenate block. The input bus signals to the Concatenate block must be nonvirtual and of the same type (that is, have the same names, hierarchies and attributes for the leaf elements).

The example also illustrates the use of the Selector and Assignment blocks to select from and assign into the array of buses.