Sign

Output the sign of the input

    Sign

Library

Modelica/Blocks/Math

Description

This blocks computes the output yas 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

Sign_0

NameLabelDescriptionData TypeValid Values

mo_generateEvent

generateEvent

Choose whether events shall be generated

Scalar

true
false

Sign_1

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

u

implicit

Connector of Real input signal

input

1

y

implicit

Connector of Real output signal

output

1

See Also