Manual Switch
Switching between two inputs.
Description
The Manual Switch block represents a toggle switch that switches the output between two inputs. The input signal changes when the Port value parameter is turned on or off.
The input signal is changed by double clicking on the block. The switch can be set to the desired position either before running the simulation or while the model is running. The Manual Switch block retains its current state when the model is saved.
Ports
Input
Port_1 - first input signal
scalar
| vector
The first of two input signals. The block passes either the first or second input to the output. The input signal is changed by double-clicking the block.
Data types: Float16
, Float32
, Float64
, Int8
, Int16
, Int32
, Int64
, UInt8
, UInt16
, UInt32
, UInt64
, Bool
.
Support for complex numbers: Yes
Port_2 - second input signal
scalar
| vector
The second of the two input signals. The block passes either the first or second input to the output. The input signal is changed by double-clicking on the block.
Data types: Float16
, Float32
, Float64
, Int8
, Int16
, Int32
, Int64
, UInt8
, UInt16
, UInt32
, UInt64
, Bool
.
Support for complex numbers: Yes