From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.


Showing results for 
Search instead for 
Did you mean: 

detect where a threshold crosses a peak

Go to solution

I disagree with you, Matt.  Both of the other solutions will give a boolean array showing when the waveform is above or below the threshold.  You still have to find the crossing points.  My solution will find whatever you want it to find.  Simply use the original array to look for rising crossings and the negated array to look for falling crossings.  It has the added benefit of being able to use the Threshold 1D Array function, which will find a point in between indexes that is closer to the actual crossing point.  Waveforms I've worked with almost never have any points that are the exact threshold value I'm looking for.


Your sarcasm is unwaranted and not what I would expect from someone at NI.   THere are always multiple ways to accomplish things and, just because you don't like it, doesn't make it wrong.


Kelly Bersch
Certified LabVIEW Developer
Kudos are always welcome
0 Kudos
Message 11 of 13
Hi cconormac, Could you share the vi here if you have the solution,thanks.
0 Kudos
Message 12 of 13

This vi finds positive and negative threshold crossings in a 1D array. 

0 Kudos
Message 13 of 13