Main Content

Composite Interfaces

Group signals or messages to reduce model complexity at component interfaces

To reduce model complexity, group individual signals or messages into composite lines using buses.

Virtual buses meet most modeling requirements for composite interfaces and provide the flexibility to combine different types of signals.

For a comparison of modeling techniques, see Composite Interface Guidelines.

Blocks

expand all

In Bus ElementSelect input from external port
Out Bus ElementSpecify output of external port
Bus AssignmentAssign new values to specified bus elements
Bus CreatorGroup input signals or messages into bus
Bus SelectorSelect elements from input bus
DemuxExtract and output elements of virtual vector signal
MuxCombine input signals of same data type and complexity into virtual vector
SelectorSelect input elements from vector, matrix, or multidimensional signal
Vector ConcatenateConcatenate input vectors of same data type for iterative processing
Matrix ConcatenateConcatenate input matrices of same data type for iterative processing
Bus to VectorConvert virtual bus to vector
Signal ConversionConvert signal to new type without altering signal values

Functions

expand all

Simulink.Bus.addElementToPortAdd element to input bus element port (Since R2022b)
getNumLeafBusElementsNumber of leaf elements in Simulink.Bus object
getLeafBusElementsLeaf elements in Simulink.Bus object
Simulink.Bus Specify properties of buses
Simulink.BusElement Specify properties of elements of buses
Simulink.Bus.cellToObjectConvert cell array containing bus information to Simulink.Bus objects
Simulink.Bus.createObjectCreate Simulink.Bus objects from blocks or MATLAB structures
Simulink.Bus.objectToCellUse Simulink.Bus objects to create cell array containing bus information
Simulink.Bus.saveSave Simulink.Bus objects in function
Simulink.Bus.createMATLABStructCreate MATLAB structures that use the same hierarchy and attributes as buses
Simulink.BlockDiagram.addBusToVectorConvert virtual bus signals into vector signals by adding Bus to Vector blocks

Tools

Signal Hierarchy ViewerView signal hierarchy and trace signal to source or destination
Type EditorCreate, modify, and manage types, such as bus objects

Topics

Composite Interface Basics

Visually Group Lines

Modify and Configure Buses

Define Bus Object Data Types

Functionally Group Lines

Simplify Iterative Processing

Related Information