| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
Signal Routing

The Manual Switch block is a toggle switch that selects one of its two inputs to pass through to the output. To toggle between inputs, double-click the block (there is no dialog box). The block propagates the selected input to the output, while the block discards the unselected input. You can interactively control the signal flow by setting the switch before you start the simulation or by changing the switch while the simulation is executing. The Manual Switch block retains its current state when you save the model.
The Manual Switch block accepts real or complex signals of any data type that Simulink supports, including fixed-point and enumerated data types. For more information, see Data Types Supported by Simulink in the Simulink documentation.
Double-clicking the Manual Switch block toggles the input. To open the Function Block Parameters dialog box, right-click the block, and then select Mask Parameters.

This parameter tracks the current state of the Manual Switch block and cannot be modified by the user.
This parameter tracks the current state of the Manual Switch block and cannot be modified by the user
Select this check box to allow input signals with different sizes.
Default: Off
Allows input signals with different sizes, and propagate the input signal size to the output signal.
Requires that all input signals be the same size.
| Parameter: AllowDiffInputSignals |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'off' |
Direct Feedthrough | Yes |
Sample Time | Inherited from driving block |
Scalar Expansion | N/A |
Dimensionalized | Yes |
Multidimensionalized | Yes |
Zero Crossing | No |
![]() | Magnitude-Angle to Complex | Math Function | ![]() |

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 |