Signal Routing
R2026bBlocks 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 | Assign new values to specified bus elements | |
| Bus Creator | Group input signals, buses, or messages into bus | |
| Bus Selector | Select elements from input bus | |
| Data Store Memory | Define data store | |
| Data Store Read | Read data from data store | |
| Data Store Write | Write data to data store | |
| Demux | Extract and output elements of virtual vector signal | |
| Environment Controller | (Removed) Create branches of block diagram that apply only to simulation or only to code generation | |
| From | Accept input from Goto block | |
| Goto | Pass block input to From blocks | |
| Goto Tag Visibility | Define scope of Goto block tag | |
| Index Vector | Switch output between different inputs based on value of first input | |
| Manual Switch | Switch between two inputs | |
| Manual Variant Sink | Switch between multiple variant choices at output | |
| Manual Variant Source | Switch between multiple variant choices at input | |
| Merge | Combine multiple signals into single signal | |
| Multiport Switch | Select output signal based on control signal | |
| Mux | Combine input signals of same data type and complexity into virtual vector | |
| Parameter Writer | Write to block parameter or variable | |
| Selector | Select input elements from vector, matrix, or multidimensional signal | |
| State Reader | Read a block state | |
| State Writer | Write to a block state | |
| Switch | Switch output between first input and third input based on value of second input | |
| Variant End | Define end of bounded region (Since R2024a) | |
| Variant Sink | Route amongst multiple outputs using variants | |
| Variant Source | Route among multiple inputs using variants | |
| Variant Start | Define start of bounded region (Since R2024a) | |
| Vector Concatenate | Concatenate input vectors of same data type for iterative processing |
Tools
| Library Browser | Find and add blocks to model |
Topics
- Add Blocks to Models
Use the Library Browser and quick insert menu to insert blocks.