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 parameter adds empty input ports to the block. Before you simulate the model, make sure that the input element is connected to each input port.
When changing the parameter Number of inputs Click the Refresh button to update the list of items.
Default value |
|
Program usage name |
|
Tunable |
No |
Evaluatable |
Yes |
#
Output data type —
output bus data type
Inherit: auto
| BusSignal
Details
Specify the data type of the output bus.
To programmatically set the value of the block parameter, use the function engee.set_param!
.
Values |
|
Default value |
|
Program usage name |
|
Tunable |
No |
Evaluatable |
No |
#
Output bus type —
type of output bus
Data type
Details
Describes the type of bus that the unit outputs.
You can set the type yourself or enter the name of a variable that stores a type that has already been created in the workspace.
Dependencies
To use this parameter, set for the parameter Output data type meaning BusSignal
.
Default value |
|
Program usage name |
|
Tunable |
No |
Evaluatable |
Yes |
#
InputLineNames —
list of input elements
String
Details
The list of input elements includes all the elements included in the block, including elements of nested buses. The arrow next to the element indicates that the input element is a bus. To display the contents of this bus, click the arrow.
To select the source of an item included in the block, select the item in the list and click the Find button.
If you change the name of an item while the options window is open, click Refresh to update the name in the list.
To rearrange in the output bus, use the Up and Down. You can select several adjacent top-level items in the Bus Items list to rearrange or delete them.
To add or remove input elements, click Add or Delete 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 |