Bus Creator
Forms a bus from signals of different types.
blockType: BusCreator
Path in the library:
|
Description
The Bus Creator block combines a set of input elements into a bus. All types of elements can be connected to the input ports, including other buses. The bus elements can be accessed using the block Bus Selector.
The output port of the Bus Creator block can only be connected to the input port of the block Bus Selector |
Bus elements must have unique names. By default, each bus element inherits the name of the element connected to the block Bus Creator. If duplicate names are present, the Bus Creator block adds the port number to all input element names. For elements that have no names, the Bus Creator block generates names of the form signaln
, where n
is the port number connected to the element. You can refer to items by name when searching for their sources or selecting items to connect to other blocks.
For more information about bus types, see Custom Bus Types. |
Ports
Output
#
OUT_1
—
output bus
bus
Details
The output bus consists of input elements.
Data types |
|
Complex numbers support |
No |
Input
#
IN
—
input element for inclusion in the bus
scalar
| vector
| matrix
| bus
Details
Input ports of the block receive elements for inclusion in the bus. The number of input ports is determined by the parameters Number of inputs.
Data types |
|
Complex numbers support |
No |
Parameters
Main
# Number of inputs — number of elements in the input bus
Details
The number of input elements must be an integer greater than or equal to 2
. Increasing the value of this parameters adds empty input ports to the block. Before you simulate the model, make sure that an input element is connected to each input port.
If you change the parameter Number of inputs, click the Update button to update the element list.
Default value |
|
Program usage name |
|
Tunable |
No |
Evaluatable |
Yes |
#
InputLineNames —
input list
String
Details
The input element list includes all elements included in the block, including nested bus elements. An arrow next to an element indicates that the input element is a bus. Click the arrow to display the contents of that bus.
To select the source of an element included in the block, select the element in the list and click the Find button.
If you change the name of the element while the parameters window is open, click Update to update the name in the list.
To rearrange in the output bus, use the Up and Down buttons. You can select multiple neighbouring top-level items in the Elements in Bus list to rearrange or delete them.
To add or remove input elements, press the Add or Delete button respectively. Before assembling the model, make sure that an input element is connected to each input port.
Default value |
|
Program usage name |
|
Tunable |
No |
Evaluatable |
Yes |