Detect Change
Detecting a change in the signal value.
Description
The Detect Change block determines that the current value of the input signal is not equal to the previous value.
-
The output signal takes the value
true (1)
when the current value of the input signal is not equal to the previous value. -
The output signal takes the value
false (0)
when the current value of the input signal is equal to the previous one.
This block can be used only with discrete solvers.
Ports
Parameters
Initial condition - initial value of input signal
0.0 (by default)
| scalar
| vector
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 |
|