ZeroCrossing

Trigger zero crossing of input u

    ZeroCrossing

Library

Modelica/Blocks/Logical

Description

The output "y" is true at thetime instant when the input "u" becomeszero, provided the input "enable" istrue. At all other time instants, the output "y" is false.If the input "u" is zero at a time instant when the "enable"input changes its value, then the output y is false.

Note, that in the plot window of a Modelica simulator, the output ofthis block is usually identically to false, because the outputmay only be true at an event instant, but not duringcontinuous integration. In order to check that this component isactually working as expected, one should connect its output to, e.g.,component Modelica.Blocks.Discrete.TriggeredSampler.

Parameters

ZeroCrossing_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

'disable'
'u_pos'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

y

implicit

Connector of Boolean output signal

output

1

u

implicit

input

1

enable

implicit

Zero input crossing is triggered if the enable input signal is true

input

2

See Also