Event

Navigation:  Library > Signal > Events >

Event

Previous pageReturn to chapter overviewNext page

Library

Signal\Events

Implementations

CrossingBoth

CrossingDown

CrossingUp

Use

Domains: Discrete, Continuous. Size: 1-D. Allowed in: Block Diagrams.

Description - CrossingBoth

This is the block implementation of the event function. The output signal is a boolean which goes from false (0) to true (1) when the input signal crosses zero (offset = 0):

 

output = event (input - offset);

 

If desired, you can change the parameter offset to trigger the event on a non-zero input value.

 

EventBoth

The output of the event block for a sinusoidal input (parameter offset = 0).

Interface - CrossingBoth

Inputs

Description

input

 

Outputs

Description

output

event signal (boolean)

Parameters

 

offset

 

output is true (event) when the input signal crosses this value (default = 0)

Description - CrossingDown

This is the block implementation of the eventdown function. The output signal is a boolean which goes from false (0) to true (1) when the input signal crosses zero with a negative slope (offset = 0):

 

output = eventdown (input - offset);

 

If desired, you can change the parameter offset to trigger the event on a non-zero input value.

 

EventDown

The output of the event block for a sinusoidal input (parameter offset = 0).

Interface - CrossingDown

Inputs

Description

input

 

Outputs

Description

output

event signal (boolean)

Parameters

 

offset

 

output is true (event) when the input signal crosses this value (default = 0).

Description - CrossingUp

This is the block implementation of the eventup function. The output signal is a boolean which goes from false (0) to true (1) when the input signal crosses zero with a positive slope (offset = 0):

 

output = eventup (input - offset);

 

If desired, you can change the parameter offset to trigger the event on a non-zero input value.

 

EventUp

The output of the event block for a sinusoidal input (parameter offset = 0).

Interface - CrossingUp

Inputs

Description

input

 

Outputs

Description

output

event signal (boolean)

Parameters

 

offset

 

output is true (event) when the input signal crosses this value (default = 0).