Detect Change
Detecting a change in the signal value.
blockType: Detect Change
Path in the library: 
 | 
Description
Block Detect Change determines that the current value of the input signal is not equal to the previous one.
- 
The output signal takes the value
true (1)if the current value of the input signal is not equal to the previous one. - 
The output signal takes the value
false (0)if the current value of the input signal is equal to the previous one. 
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
Details
The output signal takes the value true (1) if the current value of the input signal is not equal to the previous one.
The output signal takes the value false (0) if the current value of the input signal is equal to the previous one.
| Data types | 
 
  | 
| Complex numbers support | 
 Yes  | 
Parameters
Main
#
Initial condition —
the initial value of the input signal
Scalar / array of real and/or complex 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  |