falling-edge
Syntax
Shorthand syntax
- falling-edge
Extended syntax
- falling-edge:
min-dwell: value
max-dwell: value
Description
The falling-edge operation does not take any parameters. It watches a digital input and emits an event pulse each time the input transitions from high to low.
The optional parameters min-dwell and max-dwell can be specified to recognize edge transitions that follow a previous transition within the given window. For example, setting a max-dwell of 1 will recognize a falling-edge transition that's part of a spike in the signal of at most 1s duration.
Examples
- AdapterScript
var1:
- source: AIN0
- threshold: 2.5
- falling-edge
info
In the above example, AIN0
is an identifier available in LabJack data sources.