Skip to main content

rising-edge

Syntax

Shorthand syntax

- rising-edge

Extended syntax

- rising-edge:
min-dwell: value
max-dwell: value

Description

The rising-edge operation does not take any parameters by default. It watches a digital input and emits an event pulse each time the input transitions from low to high.

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 rising-edge transition that's part of a drop in the signal of at most 1s duration.

Examples

  var1:
- source: AIN0
- threshold: 2.5
- rising-edge
info

In the above example, AIN0 is an identifier available in LabJack data sources.