How to Find x1 and x2 by Applying a Threshold to a Noisy Gaussian Waveform

Updated Oct 27, 2026

Reported In

Software

  • LabVIEW

Issue Details

I have a Gaussian waveform that is affected by noise. I want to define a threshold and identify the point where the waveform crosses above the threshold (x1) and the point where it falls below the threshold again (x2). However, due to the noise in the waveform, I cannot create a program that behaves as expected. How can I accomplish this?

Solution

To identify threshold crossing points in a waveform that is heavily affected by noise, you can either use complex array operations to determine the intended crossing points directly or smooth the waveform first and then use simpler array operations to find the crossing points. In many cases, the second approach can be implemented with a simpler program.

For example, when using the B-Spline Fit VI to approximate the original waveform, the original waveform (blue) becomes a smoother waveform (red), as shown below. After smoothing, you can identify the points where the waveform rises above the threshold and falls below it again using simple array-processing techniques.

x1x2.png

Attachments