One approach that is similar to, but a little more robust than, your original method is to use the Peak Detection vi which fits a quadratic to the data, and returns a fractional index. Here I've used it just to shift each waveform so that the peak is at zero, but you could use the shift information in different ways.
Here's a noisy signal, and increasing the width of the fit seems to cope with it ok.
Well here are about 10 options with my favorite being the one already linked to in the first post of this thread. You decide what is the best fit for your application.
Dear all,
My company is hiring a new developer to join our software team. Please see link below for details and to apply.
http://www.greenlightinnovation.com/company/careers/articles/253.php