HitCrossing

HitCrossing detects the crossing point.

  • upper output: LastEventTime
  • middle output: out
  • lower output: LastEventType

Element

Direction

Remark

in::continuous

input

block input

out::log

output

block output

  • false: no crossing detected in present simulation step
  • true: crossing of indicated type detected in present simulation step

LastEventType::udisc

output

block output; holds a value that corresponds to the last event detected:

  • 0: previously there was no special event
  • 1: last event was 'Crossing'
  • 2: last event was 'Rising'
  • 3: last event was 'Falling'

LastEventTime::continuous

output

block output; holds value of time of occurrence of last event.

Is 0 if no event has occurred yet.

CrossingType::udisc

parameter; indicates type of event to detect:

  • 0: no detection, i.e. switch off event-detection
  • 1: detect 'Crossing'
  • 2: detect 'Rising'
  • 3: detect 'Falling'

Offset::continuous

parameter; the value whose crossing is to be detected