Out Bus Element, Bus Element Out
Specify output that connects to external port
- Library:
Simulink / Ports & Subsystems
Simulink / Sinks
HDL Coder / Ports & Subsystems
HDL Coder / Sinks
Description
The Out Bus Element block, also known as the Bus Element Out block, combines the functionality of an Outport block and a Bus Creator block. This block is of the Outport block type and all Out Bus Element blocks that use the same port share a dialog box.
The output of an Out Bus Element is a bus, regardless of the number and type of signals connected to it. You must connect an Out Bus Element block to each signal that you want the bus to contain.
The Out Bus Element block does not support mixing message and signal elements as inputs.
Create Port and Related Blocks
When you insert an Out Bus Element block, the block label populates with default values. The label consists of two interactive text fields: the port name and the bus element. To change the name of the port associated with the block, edit the first text field in the label by clicking the text.
To output multiple signals in a bus, create one Out Bus Element
block for each signal that you want to include in the bus. In the Block Parameters
dialog box, you can select the Add a new signal
or Add a new sub-bus
buttons. Alternatively, hold Ctrl while you
drag an existing Out Bus Element block to a new location. Upon
releasing the mouse, click Use Existing Port.
If multiple blocks are associated with the same port and you change the name of the port, all blocks that share the port update to reflect the new port name.
To create a port, hold Ctrl while you drag an existing Out Bus Element block to a new location. Upon releasing the mouse, click Create New Port.
Modify Port Output
In the Block Parameters dialog box, you can:
Change port and element names.
Reorder bus elements by dragging and dropping an element in the list of elements.
Remove blocks associated with selected elements by clicking the Remove blocks of selected signals button
.
Specify Element Name
To change the name of the bus element associated with the block, edit the second text field in the label by clicking the text.
Tip
To pass the block input to the external output port without nesting it in a bus, delete the text from the second text field in the label.
All element names associated with the port must be unique. You cannot specify the same element name more than once for a port. Simulink® does not support overlapping writes to the same port.
To create hierarchy in the output bus, use dots in the part of the label that describes the bus element. Each dot indicates a new level of bus hierarchy.
To reduce the size of the label, you can display only the element name by selecting the block, pausing on the ellipsis, and selecting Compact Notation from the action bar. To show the bus hierarchy again, select Expanded Notation from the action bar.
Specify Attributes
To specify attributes, such as data type, pause on the name of a bus, signal, or message. Then, click the pencil button that appears.
When you specify attributes, they appear next to the name of the bus, signal, or message. Click an attribute summary to edit the attributes of the bus, signal, or message.
Log Output Data
When you save output data to the workspace or a file, bus data defined by groups of root-level Out Bus Element blocks are logged along with root-level Outport block data.
Ports
Input
Parameters
Model Examples
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|