Version:

Last Modified: January 9, 2017

Finds the location, amplitude, and second derivative of peaks or valleys in the input signal.

A Boolean that determines whether to process only one block of data.

True | Processes only one block of data. |

False | Processes consecutive blocks of data. |

After processing the last block of data, this node manages internal data. If you only want to process one block of data, set this input to True. If you want to process consecutive blocks of data, set this input to False for all but the last block of data.

**Default: **True

A Boolean that determines whether to process the first block of data.

True | Processes only the first block of data. |

False | Processes consecutive blocks of data. |

This node requires some internal setup at the beginning for proper operation. If you only want to process one block of data, set this input to True. If you want to process consecutive blocks of data, set this input to True for the first block and False for all other blocks of data.

**Default: **True

The threshold at which this node ignores peaks and valleys. This node ignores peaks if the fitted amplitude is less than this input. This node ignores valleys if the fitted trough is greater than this input.

**Default: **0

The number of consecutive data points to use in the quadratic least squares fit. This input is coerced to a value greater than or equal to 3.

The value of **width** should be no more than about 1/2 of the half-width of the peaks or valleys and can be much smaller (but >2) for noise-free data.

How width Affects Detecting False Peaks

Large widths can reduce the apparent amplitude of peaks and shift the apparent location. For noisy data, this modification is unimportant since the noise obscures the actual peak. Ideally, the width should be as small as possible but must be balanced against the possibility of false peak detection due to noise.

**Default: **3

An enum that determines whether the node looks for peaks or valleys in the input signal.

Name | Description |
---|---|

Peaks | Looks for peaks in the input signal. |

Valleys | Looks for valleys in the input signal. |

**Default: **Peaks

Error conditions that occur before this node runs. The node responds to this input according to standard error behavior.

**Default: **No error

The index locations of all peaks or valleys detected in the current block of data.

Because the peak detection algorithm uses a quadratic fit to find the peaks, the algorithm interpolates between the data points. Therefore, the indexes are not integers. In other words, the peaks found may not be actual points in the input data but may be at fractions of an index and at amplitudes not found in the input array. To view the locations in terms of time, use the following equation:

Time Locations[*i*] = *t0* + *dt**Locations[*i*]

The measurements of the second derivative of the amplitude at each of the peaks or valleys found in the current block of data.

This input gives an approximate measure of the sharpness of each peak or valley. If this node detects peaks, these values are negative. If this node detects valleys, the values are positive.

The number of peaks or valleys found in the current block of data.

This node uses an algorithm that fits a quadratic polynomial to sequential groups of data points. The input **width** specifies the number of data points to use in the fit.

For each peak or valley, this node tests the quadratic fit against the input **threshold**. This node ignores peaks with heights lower than **threshold** or valleys with troughs higher than **threshold**. This node detects peaks and valleys only after processing approximately **width**/2 data points beyond the location of the peak or valley. This delay has implications only for real-time processing.

**Where This Node Can Run: **

Desktop OS: Windows

FPGA: Not supported