Bus-capable blocks can accept buses as input, produce buses as output, or both. Some bus-capable blocks work with nonvirtual buses, but not with virtual buses. Some bus-capable blocks have additional requirements for buses; see the block documentation for details.
Block | Input | Output |
---|---|---|
All virtual blocks |
![]() |
![]() |
Assignment(nonvirtual buses) |
![]() |
![]() |
![]() |
![]() | |
![]() |
![]() | |
![]() |
![]() | |
Constant (nonvirtual buses) |
![]() | |
Data Store Memory (nonvirtual buses) | Has no input port, can store buses | |
Data Store Read (nonvirtual buses) |
![]() | |
Data Store Write (nonvirtual buses) |
![]() | |
![]() | ![]() | |
From File (nonvirtual buses) |
![]() | |
From Workspace (nonvirtual buses) |
![]() | |
Signal Editor (nonvirtual buses) |
![]() | |
![]() | ||
![]() |
![]() | |
![]() | ||
![]() | ||
![]() | ![]() | |
![]() | ||
![]() | ||
![]() | ![]() | |
![]() |
![]() | |
![]() |
![]() | |
To File (nonvirtual buses) | ![]() | |
To Workspace (nonvirtual buses) |
![]() | |
![]() |
![]() | |
Vector Concatenate (nonvirtual buses) |
![]() |
![]() |
![]() |
![]() |
These modeling patterns support the use of buses.
Subsystems
Model referencing
S-Functions
Stateflow® charts
MATLAB Function blocks
MATLAB System blocks
Buses that contain signals of enumerated data types do not pass through a block that requires a nonzero scalar initial value (such as a Unit Delay block). Use a structure value to initialize signals with enumerated types.
Root level bus outputs are not logged when you select the Output configuration parameter. Use standard signal logging instead, as described in Export Signal Data Using Signal Logging.
Do not use signal logging for bus or arrays of buses directly from within a For Each subsystem. Either use a Bus Selector block to select the bus element signals to log or add an Outport block outside of the subsystem and then log that signal. For details, see Log Signals in For Each Subsystems.