SwitchN

Switching between inputs up to n times depending upon condition

Information

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

The SwitchN switches up to n times between the inputs u1 (u_cond = true) and u2 (u_cond = false). After each switching an internal counter will be increased and checked so that there are at most n switches.

See also

Switch

Parameters (1)

n

Value: 1

Type: Integer

Description: Maximum number of switchings

Connectors (4)

y

Type: RealOutput

Description: Output signal

u1

Type: RealInput

Description: Input 1

u2

Type: RealInput

Description: Input 2

u_cond

Type: BooleanInput

Description: Condition