Detect Fall Nonpositive
Detection of a falling edge provided that the signal value decreases to a non-positive value and its previous value was strictly positive.
blockType: Detect Fall Nonpositive
Path in the library:
|
Description
The Detect Fall Nonpositive block determines that the current value of the input signal is less than or equal to zero and its previous value was greater than zero.
-
The output signal takes the value
true (1)
when the input signal value is less than or equal to zero and its previous value was greater than zero. -
The output signal takes the value
false (0)
when the value of the input signal is greater than zero, or when it is non-positive and its previous value was also non-positive.
This block can only be used with discrete solvers.
Ports
Input
Port_1 - input signal
scalar
| vector
| matrix
Input signal as a scalar, vector or matrix.
Data types: Float16
, Float32
, Float64
, Int8
, Int16
, Int32
, Int64
, UInt8
, UInt16
, UInt32
, UInt64
, Bool
.
Output
Port_1 - output signal
scalar
| vector
| matrix
An output signal that detects a falling edge. The output can be a scalar, vector or matrix.
-
The output signal takes the value
true (1)
when the value of the input signal is less than or equal to zero and its previous value was greater than zero. -
The output signal takes the value
false (0)
when the value of the input signal is greater than zero, or when it is non-positive and its previous value was also non-positive.
Data types: Bool
, UInt8
.
Parameters
Initial condition - initial value of input signal
0 (by default)
| scalar
| vector
| matrix
Sets the initial value of the input signal.
Block parameter |
|
Values |
|
By default |
|
Output data type - output data type
bool (by default)
| UInt8
Set the output data type to Bool
or UInt8
.
Block parameter |
|
Values |
|
By default |
|