Detect decrease in signal value
Logic and Bit Operations
The Detect Decrease block determines if an input is strictly less than its previous value.
The output is true (equal to 1) when the input signal is less than its previous value.
The output is false (equal to 0) when the input signal is greater than or equal to its previous value.
The Detect Decrease block accepts signals of the following data types:
For more information, see Data Types Supported by Simulink in the Simulink® documentation.
Set the initial condition for the previous input U/z.
Specify whether the block performs sample- or frame-based processing. You can select one of the following options:
Elements as channels (sample based) —
Treat each element of the input as a separate channel (sample-based
Columns as channels (frame based) —
Treat each column of the input as a separate channel (frame-based
Note: Frame-based processing requires a DSP System Toolbox™ license.
For more information, see Sample- and Frame-Based Concepts in the DSP System Toolbox documentation.
Inherited — Inherit
the processing mode from the input signal and delay the input accordingly.
You can identify whether the input signal is sample or frame based
by looking at the signal line. Simulink represents sample-based
signals with a single line and frame-based signals with a double line.
When you choose the
Use Input processing to specify whether
the block performs sample- or frame-based processing. The block accepts
frame-based signals for the input
u. All other
input signals must be sample based.
|Input Signal u||Input Processing Mode||Block Works?|
|Sample based||Sample based||Yes|
|Frame based||No, produces an error|
|Sample based||Frame based||Yes|
For more information about these two processing modes, see Sample- and Frame-Based Concepts in the DSP System Toolbox documentation.
Set the output data type to
Double | Single | Boolean | Base Integer | Fixed-Point | Enumerated