Switch
signal.switch
Passes u1 while the control input c is above the threshold, else u2.
Ports
| Name | Domain | Direction |
|---|---|---|
u1 | signal | in |
u2 | signal | in |
c | signal | in |
y | signal | out |
Parameters
| Name | Unit | Default | Description |
|---|---|---|---|
threshold | 1 | 0.5 | Switching level of c |
Equations
y = if c > threshold then u1 else u2