blockZeroCrossing
Extends from Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).
Information
Block that detects zero crossings.
The output y is true at the
time instant when the input u becomes
zero, provided the input enable is
true. 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 of
this block is usually identically to false, because the output
may only be true at an event instant, but not during
continuous integration. In order to check that this component is
actually working as expected, one should connect its output to, e.g.,
component Buildings.Controls.OBC.CDL.Discrete.TriggeredSampler.
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | u | Connector of Real input signal | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | y | Connector of Boolean output signal | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput | enable | Zero input crossing is triggered if the enable input signal is true |
Revisions
-
December 8, 2023, by Jianjun Hu:
Moved this model to theObsoletepackage. This is for issue 3595. -
January 3, 2017, by Michael Wetter:
First implementation, based on the implementation of the Modelica Standard Library.