Edge Detector
(To be removed) Detect change in logical signal state
The Specialized Power Systems library will be removed in R2026a. Use the Simscape™ Electrical™ blocks and functions instead. For more information on updating your models, see Upgrade Specialized Power System Models to use Simscape Electrical Blocks.
Library
Simscape / Electrical / Specialized Power Systems / Control
Description
The Edge Detector block outputs a needle impulse when a change in the logical input is detected.
The Edge Detector block can be programmed to detect a rising edge (when the input goes from false to true), a falling edge (when the input goes from true to false), or either edge (any change in input is detected).
Parameters
- Edge detection
Select the detection criteria triggering the output impulse. Choices are
Rising(default),Falling, orEither.- Initial condition of previous input
Specify the initial value of the previous input. The Edge Detector block can detect an edge at t = 0 if the input is different from the specified value. Default is
0.- Sample time (-1 for inherited)
Specify the sample time of the block, in seconds. Set to
0to implement a continuous block. Default is0.
Inputs and Outputs
The input signal must be a Boolean signal. The output is Boolean.
Characteristics
| Direct Feedthrough | Yes |
| Sample Time | Specified in the Sample Time parameter |
| Scalar Expansion | Yes |
| Dimensionalized | Yes |
| Zero-Crossing Detection | Yes |
Version History
Introduced in R2013a
