Event Detector

Detects when a global variable crosses a specified threshold. When this condition is detected an output variable is assigned a value of 1 during the event, then reset on the next timestep.

Input

Global variable analyzed by the event detector

Output Event

Output global variable that is assigned a value of 0 (no event) or 1 (event detected). This value is automatically reset to zero on the next time step.

Output Event Time

Output global variable that holds the last time the event has occurred.

Output Event Count

Total number of times the event has occurred

Threshold Value

When the input variable crosses this value, an event occurs

Is One Shot

If true, the event is allowed to occur only once during the entire simulation

Crossing Type
  • Down: Detects down crossing only

  • Up: Detects up crossing only

  • Any: Detects down and up crossing

Enable Event Time

Enables the Output Event Time assignment

Enable Event Count

Enables the Output Event Count assignment