ZeroCross

This block produces an output event if the input crosses zero with a negative slope. The block does not react to jumps across zero due to events so an input may change sign without any event generation, in particular if the input is a discrete signal. For detecting discrete-time zero crossings, use the EdgeTrigger block.

    ZeroCross

Library

ActivationOperations

Description

The ZeroCross block produces an output event when all of its regular inputs, if more than one, cross the value zero simultaneously. The block does not react to jumps across zero due to events so an input may change sign without any event generation, in particular if the input is a discrete signal. For detecting discrete-time zero crossings, use the EdgeTrigger block.

The input should be of type double.

Parameters

ZeroCross_0

NameLabelDescriptionData TypeValid Values

dept

Always active

Scalar

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

1

Port 2

activation

output

1

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

no

zero-crossing

yes

mode

no

continuous-time state

no

discrete-time state

no