Engee documentation

Edge Detector

Detection of a change in the state of a logic signal.

blockType: SubSystem

Path in the library:

/Physical Modeling/Electrical/Control/General Control/Edge Detector

Description

The Edge Detector unit outputs a pulse when a change in the logic input signal is detected.

The Edge Detector block can detect a rising edge (when the input goes from false to true), falling edge (when the input goes from true to false), or any other edge (any change in the input is detected).

Ports

Input

# IN_1 — input signal
scalar | vector

Details

Input logic signal.

Data types

Bool.

Complex numbers support

No

Output

# OUT_1 — output signal
scalar | vector

Details

Output logic signal.

Data types

Bool.

Complex numbers support

No

Parameters

Parameters

# Edge detection — front detection
Rising | Falling | Either

Details

Select the detection criterion that triggers the output pulse. Options to select:

  • Rising (By default);

  • Falling;

  • Either.

Values

Rising | Falling | Either

Default value

Rising

Program usage name

model

Evaluatable

Yes

# Initial condition of previous input — initial state of the previous input

Details

Specify the initial value of the previous input. The Edge Detector Unit can detect a rising edge at , if the input is different from the specified value.

Default value

0.0

Program usage name

initial_condition

Evaluatable

Yes

# Sample time — interval between calculation steps (-1 for inherited ones)

Details

Specify the block sampling period, in seconds. Set 0 to realise a continuous block.

Default value

0.0

Program usage name

sample_time

Evaluatable

Yes