LevelCrossingDetector

../../_images/LevelCrossingDetector.png

Detect a threshold crossing on any of the channels in the incoming multi-channel datastream and emits an event in response.

Input port

port name

data type

slots

description

data

MultiChannelData <double>

1

None

Output port

port name

data type

slots

description

events

EventData

1

A stream of events.

Options

port name

data type

default

description

threshold

double

0.0

Threshold (in data units) that needs to be crossed.

event

string

threshold_crossing

The event to emit when the input signal crosses the threshold.

post detect block

unsigned int

2

refractory period after threshold crossing detection (in number of samples )

upslope

bool;

True

Either detect upward (true) or downward (false) threshold crossings.

Static states

name

data type

initial value

external access

peers access

description

threshold

double

0.0

write

True

Threshold (in data units) that needs to be crossed.

post detect block

unsigned int

2

write

True

refractory period after threshold crossing detection (in number of samples )

upslope

bool;

True

write

True

Either detect upward (true) or downward (false) threshold crossings.