| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
The Signal Routing library provides three blocks that you can use for implementing buses:
Create a bus that contains specified elements
Replace specified bus elements
Select elements from a bus
Each of these blocks is virtual or nonvirtual depending on whether the bus that it processes is virtual or nonvirtual. The Simulink software chooses the block type, and changes it automatically if the bus type changes.
To create and access a bus signal that has default properties:
Clone a Bus Creator and Bus Selector block from the Signal Routing library.
Connect the Bus Creator, Bus Selector, and other blocks as needed to implement the desired bus.
The next figure shows two signals that are input to a Bus Creator block, transmitted as a bus signal to a Bus Selector block, and output as separate signals.

The Bus Creator and Bus Selector blocks are the left and right vertical bars, respectively. Consistent with the goal of reducing visual complexity, neither block displays a name. The line connecting the blocks, representing the bus signal, is tripled because the model has been built, and the middle line is solid because the bus is virtual. The line would be dashed if the bus were nonvirtual:
| Virtual Bus |
|
| Nonvirtual Bus |
|
See Signal Line Styles for more about the graphical appearance of signals. You can also display other signal characteristics graphically, as described under Displaying Signal Properties. For more information about creating and accessing buses, see the reference documentation for the Bus Creator, Bus Selector, and Bus Assignment blocks.
![]() | About Composite Signals | Nesting Buses | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |