Owning Palette: Edge Detect Function Blocks
Requires: RT Module
Detects rising edges on input 1 and falling edges on input 2. The output indicator pulses TRUE for one iteration when input 1 transitions to TRUE, when input 2 transitions to FALSE, or when both conditions occur simultaneously.
| Dialog Box Options |
| Block Diagram Inputs |
| Block Diagram Outputs |
| Parameter | Description |
|---|---|
| Inputs | Contains the following configuration options:
|
| Outputs | Contains the following configuration options:
|
| Parameter | Description |
|---|---|
| error in (no error) | Describes error conditions that occur before this node runs. |
| input 1 | Specifies the first input. The function block detects rising edges on this input. |
| input 2 | Specifies the second input. The function block detects falling edges on this input. |
| Parameter | Description |
|---|---|
| error out | Contains error information. This output provides standard error out functionality. |
| output | Returns the digital output signal. |
The timing of this function block depends on the rate of the Timed Loop or While Loop in which you place the function block. For example, if you need the function block to update with millisecond resolution, you can place the function block in a Timed Loop configured to execute every millisecond.
The following timing diagram illustrates the behavior of this function block.