On/Off Switch

Block-library: DUBSI

      block

The On/Off Switch block implements a simple on/off switch that can be controlled by a separate switch-control input signal.

The block differs from the normal Switch block in Simulink in that it outputs either the input signal or zero, instead of selecting one out of two input signals. The block differs from the Manual Switch block in that it does not require user-interaction; it is not necessary to double click the block to turn the switch on or off.

If the input signals are called u1 and u2, and the output signal is called y, then the following equations define the switching logic:

     if u1 = 1  then  y = u2,

     else, y = 0.

There are no block-parameters for the On/Off Switch.

April 15, 2003