LevelCrossingDetector

LevelCrossingDetector is available as:

This model shows how level crossing detector handles the continuous signals with and w/o 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".