Main Content

Composite Signals

Use composite signals, such as buses, to group signals and reduce model complexity

To simplify model appearance, combine individual signals into composite signals using these techniques:

  • Virtual buses

  • Nonvirtual buses

  • Mux signals

  • Concatenated signals

For a detailed comparison of composite signals, see Types of Composite Signals.

Virtual buses meet most modeling requirements for combining signals into a composite signal and give you flexibility for combining different types of signals.

Blocks

expand all

Bus AssignmentAssign new values to specified bus elements
Bus CreatorCreate bus from input elements
Bus SelectorSelect elements from incoming bus
In Bus Element Select input from external port
Out Bus ElementSpecify output that connects to external port
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 Concatenate, Matrix ConcatenateConcatenate input signals of same data type to create contiguous output signal
Bus to VectorConvert virtual bus to vector
Signal ConversionConvert signal to new type without altering signal values

Functions

expand all

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

Bus EditorCreate, modify, and manage bus objects
Model ExplorerView, modify, and add elements of Simulink models, Stateflow charts, and workspace variables

Topics

Composite Signal Basics

Visually Group Lines

Modify and Configure Buses

Define Bus Object Data Types

Functionally Group Lines

Simplify Iterative Processing

Related Information