If you have the Full or the Professional Development package of LabVIEW, you have a VI called �Peak Detect.vi� that will find all the peaks in your array.
Notice that finding the peaks is not similar to finding the largest Y values. In the attached images you can see that the Y value at index 8 is much lower than most of the other Y values in the data set, but it is still considered a peak because of the surrounding two values are lower.
I hope this answered your question.
Best regards,
Philip C.
Applications Engineer
National Instruments
www.ni.com/ask
- Philip Courtois, Thinkbot Solutions