LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Peak Detection Specifics

A part of a fatigue testing data acquisition program requires peak detection. I've read the other peak questions on here, but mine seems to be different.

Each cycle, I collect n points. Within that, there are x peaks. The data between peaks 1 and 2 is extracted, potentially saved to disk, and always inserted into a circular buffer. This continues for each peak found. Of course, there is always data left after the last peak that does not get included into a cycle. So, I shift register it back to the next data collection loop, and append it to the beginning of the next set of data.

My problem is that peak detect doesn't seem to find the peak if it's the first point in a data set. This seems to happen regardless of settings that I use. I c
an't change threshold values, and any width seems to have the same result - skipping the first point. Consequently, all the data that got held over from the last cycle gets discarded because the first peak is ignored.

Anyone have any ideas? I'm reinitializing the peak detection system each cycle because if I don't, it screws up the location indicies. I may put together a picture later, the whole problem makes more sense graphically.

Thanks!
0 Kudos
Message 1 of 3
(3,020 Views)
The peak detection requires a peak (data on both sides of peak). Since the first point of the data does not have points on the other side of the peak... I would suggest that you keep more points before the peak as your remainder waveform and it will then pick up the peak. The number will depend upon your peak width spec.
Stu
Stu
0 Kudos
Message 2 of 3
(3,020 Views)
Should have thought of that myself... Works great!

Drew
0 Kudos
Message 3 of 3
(3,020 Views)