Main Content

Signal Routing

R2026b
Blocks for routing and organizing signals, such as Bus Creator, Selector, and Switch

Use blocks from the Signal Routing library to control how signals flow between blocks in your model. You can create composite signals, split and merge signal paths, store and retrieve shared data, and switch between input sources based on conditions.

To add blocks from this library to your model, see Add Blocks to Models.

Blocks

Bus Assignment blockBus AssignmentAssign new values to specified bus elements
Bus Creator blockBus CreatorGroup input signals, buses, or messages into bus
Bus Selector blockBus SelectorSelect elements from input bus
Data Store Memory blockData Store MemoryDefine data store
Data Store Read blockData Store ReadRead data from data store
Data Store Write blockData Store WriteWrite data to data store
Demux blockDemuxExtract and output elements of virtual vector signal
Environment Controller blockEnvironment Controller(Removed) Create branches of block diagram that apply only to simulation or only to code generation
From blockFromAccept input from Goto block
Goto blockGotoPass block input to From blocks
Goto Tag Visibility blockGoto Tag VisibilityDefine scope of Goto block tag
Index Vector blockIndex VectorSwitch output between different inputs based on value of first input
Manual Switch blockManual SwitchSwitch between two inputs
Manual Variant Sink blockManual Variant SinkSwitch between multiple variant choices at output
Manual Variant Source blockManual Variant SourceSwitch between multiple variant choices at input
Merge blockMergeCombine multiple signals into single signal
Multiport Switch blockMultiport SwitchSelect output signal based on control signal
Mux blockMuxCombine input signals of same data type and complexity into virtual vector
Parameter Writer block icon.Parameter WriterWrite to block parameter or variable
Selector blockSelectorSelect input elements from vector, matrix, or multidimensional signal
State Reader blockState ReaderRead a block state
State Writer blockState WriterWrite to a block state
Switch blockSwitchSwitch output between first input and third input based on value of second input
Variant End blockVariant EndDefine end of bounded region (Since R2024a)
Variant Sink blockVariant SinkRoute amongst multiple outputs using variants
Variant Source blockVariant SourceRoute among multiple inputs using variants
Variant Start blockVariant StartDefine start of bounded region (Since R2024a)
Vector Concatenate blockVector ConcatenateConcatenate input vectors of same data type for iterative processing

Tools

Library BrowserFind and add blocks to model

Topics