Zero Crossing
- Updated2023-02-17
- 3 minute(s) read
Zero Crossing
Detects zero crossings of a signal.
Inputs/Outputs

reset
A Boolean or a Boolean array that determines whether to set crossing to False and store the current input.
| True | Sets crossing to False and stores the current crossing. |
| False | Does not set crossing to False or store the current crossing. |
Default value: False

input
Input signal.
This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.

direction type
Type of zero crossing.
This input accepts a ring or an array of rings.
| rising | 0 | Sets crossing to True when the input signal crosses zero on a rising slope. |
| falling | 1 | Sets crossing to True when the input signal crosses zero on a falling slope. |
| either | 2 | Sets crossing to True when the input signal crosses zero on either a rising or a falling slope. |
Default value: The default value of this input changes depending on the data type you wire. If you wire a ring to this input, the default is either. If you wire an array of rings to this input, the default is rising.

cycles to filter
Cycles of the input signal to process.
This input accepts a 64-bit unsigned integer or an array of 64-bit unsigned integers.
Default value: 0

threshold
Threshold to start the measurement.
This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.
Default value: 0

crossing?
A Boolean or a Boolean array that indicates whether a zero crossing occurred.
| True | A zero crossing occurred. |
| False | No zero crossing occurred. |