01-21-2015 10:15 AM
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.
06-10-2019 03:25 AM
12-30-2019 02:43 PM
This vi finds positive and negative threshold crossings in a 1D array.