blockDirectionSwitch
Changes sign of input signal
Extends from Modelica.Blocks.Interfaces.SISO (Single Input Single Output continuous control block).
Information
If boolean input switch is true, the output y = u, otherwise -u.
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput | u (from SISO) | Connector of Real input signal | |
| RealOutput | y (from SISO) | Connector of Real output signal | |
| Modelica.Blocks.Interfaces.BooleanInput | switch |