Signal\Events
CrossingBoth
CrossingDown
CrossingUp
Domains: Discrete, Continuous. Size: 1-D. Allowed in: Block Diagrams.
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.
The output of the event block for a sinusoidal input (parameter offset = 0).
Inputs |
Description |
input |
|
Outputs |
Description |
output |
event signal (boolean) |
Parameters |
|
offset
|
output is true (event) when the input signal crosses this value (default = 0) |
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.
The output of the event block for a sinusoidal input (parameter offset = 0).
Inputs |
Description |
input |
|
Outputs |
Description |
output |
event signal (boolean) |
Parameters |
|
offset
|
output is true (event) when the input signal crosses this value (default = 0). |
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.
The output of the event block for a sinusoidal input (parameter offset = 0).
Inputs |
Description |
input |
|
Outputs |
Description |
output |
event signal (boolean) |
Parameters |
|
offset
|
output is true (event) when the input signal crosses this value (default = 0). |