LevelCrossingDetector

Parent Previous Next

Full Library / Algorithmic / Analog / event generator / LevelCrossingDetector
Block Name: LevelCrossingDetector


An event detector that converts continuous signals to discrete events when the continuous signal crosses a level threshold.

The direction parameter can constrain the actor to detect only rising or falling transitions. It has three possible values, "rising", "falling", and "both", where "both" is the default.

When the trigger equals the level threshold (within the specified errorTolerance), this actor outputs a discrete event with value defaultEventValue if useEventValue is selected. Otherwise, the actor outputs a discrete event with the value as the level threshold.

This actor controls the step size such that level crossings never occur during an integration. So, this actor is only used in Continuous-Time domain.


Field Detail

defaultEventValue

public VisualSim.data.expr.Parameter defaultEventValue


direction

public VisualSim.data.expr.StringParameter direction


errorTolerance

public VisualSim.data.expr.Parameter errorTolerance


level

public VisualSim.data.expr.Parameter level


output

public VisualSim.actor.TypedIOPort output


trigger

public VisualSim.actor.TypedIOPort trigger


useDefaultEventValue

public VisualSim.data.expr.Parameter useDefaultEventValue


_level

protected double _level



Created with the Personal Edition of HelpNDoc: Easily create iPhone documentation