blockSign

Output the sign of the input

Extends from Interfaces.SISO (Single Input Single Output continuous control block).

Information

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

TypeNameDefaultDescription
BooleangenerateEventfalseChoose whether events shall be generated

Connectors

TypeNameDefaultDescription
RealInputu (from SISO)Connector of Real input signal
RealOutputy (from SISO)Connector of Real output signal