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
Block Detect Fall Nonpositive 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 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)if the value of the input signal is greater than zero, or if it is non-positive and its previous value was also non-positive.
This block can only be used with discrete solvers.
Ports
Input
#
IN_1
—
Input signal
scalar | vector | the matrix
Details
The input signal is in the form of a scalar, vector or matrix.
| Data types |
|
| Complex numbers support |
Yes |
Output
#
OUT_1
—
Output signal
scalar | vector | the matrix
Details
An output signal that detects a falling edge. The output can be a scalar, a vector, or a 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)if the value of the input signal is greater than zero, or if it is non-positive and its previous value was also non-positive.
| Data types |
|
| Complex numbers support |
Yes |
Parameters
Main
#
Initial condition —
the initial value of the input signal
Scalar / array of real numbers
Details
Sets the initial value of the input signal.
| Default value |
|
| Program usage name |
|
| Tunable |
Yes |
| Evaluatable |
Yes |
#
Output data type —
type of output data
Bool | UInt8
Details
Set the type of output data Bool or UInt8.
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
No |