Main Content

Bus-Capable Blocks

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.

BlockInputOutput
All virtual blocks

Assignment(nonvirtual buses)

Bus Assignment

Bus Creator

Bus Selector

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)

 

Delay

(special requirements) (special requirements)

From File (nonvirtual buses)

 

From Workspace (nonvirtual buses)

 

Signal Editor (nonvirtual buses)

 

Interpolation Using Prelookup

 

Manual Switch

Memory

(special requirements) 

Merge

(special requirements)) 

Multiport Switch

(special requirements) (special requirements)

Prelookup

  (special requirements)

Rate Transition

(special requirements) 

Signal Conversion

(special requirements)

Signal Specification

Switch

(special requirements)

To File (nonvirtual buses)

(special requirements) 

To Workspace (nonvirtual buses)

 

Unit Delay

(special requirements)

Vector Concatenate (nonvirtual buses)

Zero-Order Hold

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.

Related Topics