LevelCrossingDetector

This model shows how level crossing detector handles the continuous signals with and without discontinuity.

The level crossing detector has two operation modes. For continuous signals, the detector try to refine step size to find the point level crossing happens. At the time points where discontinuities happen, the detector does not try to refine step size (which is 0.0 already), but to detect the level crossing only.

The output event of level crossing detectors have the value as the specified "level" parameter. If the "useDefaultEventValue" is checked, the event has value as parameter "defaultEventValue".

The block diagram for the model was constructed using the Ptolemy II schematic editor called Vergil.