Hi Capillod
One thing to keep in mind is that the location that the peak detector outputs is a fractional index of the internally held data buffer so you will need to calculate from the fractional index the real location. The calculation is
PeakLocation = Fractionalindex – SampleLength + x
I’ve attached a demo that simulates a spectrum and passes it point by point into the Advanced Peak Detector PtByPt.vi this will allow you to simulate your system and fine tune the peak detection.
Good Luck
Kurt Friday
www.sciware.com.au