SwitchNSwitching between inputs up to n times depending upon condition |
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.
n |
Value: 1 Type: Integer Description: Maximum number of switchings |
---|
y |
Type: RealOutput Description: Output signal |
|
---|---|---|
u1 |
Type: RealInput Description: Input 1 |
|
u2 |
Type: RealInput Description: Input 2 |
|
u_cond |
Type: BooleanInput Description: Condition |