Detect Decrease
Signal slice detection.
Description
The Detect Decrease block determines that the current value of the input signal is strictly less than the previous value.
-
The output signal takes the value
true (1)
if the current value of the input signal is less than its previous value. -
The output signal takes the value
false (0)
if the current value of the input signal is greater than or equal to its previous value.
This block can be used only 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
0
| 1
-
The output signal takes the value
true (1)
if the current value of the input signal is less than its previous value. -
The output signal takes the value
false (0)
if the current value of the input signal is greater than or equal to its previous value.
Data types: Bool
, UInt8
.
Parameters
Initial condition - initial value of input signal
0 (by default)
| scalar
| vector
Sets the initial condition of the input signal U/z
.
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 |
|