Sign
Output the sign of the input
Library
Blocks/Math
Description
This blocks computes the output y as sign of the input u:
1 if u > 0 y = 0 if u == 0 -1 if u < 0
The Boolean parameter generateEvent decides whether Events are generated at zero crossing (Modelica specification before 3) or not.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_generateEvent | generateEvent | Choose whether events shall be generated | Scalar | true |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_u | u | u | Structure | |
mo_u/fixed | fixed | Cell of scalars | true | |
mo_u/start | start | Cell of scalars | ||
mo_y | y | y | Structure | |
mo_y/fixed | fixed | Cell of scalars | true | |
mo_y/start | start | Cell of scalars |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
u | implicit | Connector of Real input signal | input | 1 |
y | implicit | Connector of Real output signal | output | 1 |