blockSwitch

Switching between inputs depending upon condition

Extends from Interfaces.PartialConverters.SI2SO (Converter with two inputs and a single output).

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

Depending upon the boolean input u_cond the output y will be equal to either the input u1 (u_cond = true) or the input u2 (u_cond = false).

See also

SwitchN

Connectors

TypeNameDefaultDescription
Connectors.RealInputu1 (from SI2SO)Input 1
Connectors.RealInputu2 (from SI2SO)Input 2
Interfaces.Connectors.BooleanInputu_condCondition

Components

TypeNameDefaultDescription
RealOutputy (from SO)