Specify signal that connects to output port
Simulink / Ports & Subsystems
Simulink / Sinks
HDL Coder / Ports & Subsystems
HDL Coder / Sinks
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 virtual 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.
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.
In the Block Parameters dialog box, you can:
Change port and element names.
Reorder bus elements by dragging and dropping a signal in the list of signals.
Remove blocks associated with selected elements by clicking the
Remove blocks of selected signals button .
To change the name of the bus element associated with the block, edit the second text field in the label by clicking the text.
All output signal names associated with the port must be unique. You cannot specify the same output signal 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 signal name by selecting the block, pausing over the ellipsis, and selecting Compact Notation from the action bar. To show the signal hierarchy again, select Expanded Notation from the action bar.
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.
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|