04-24-2020 09:00 AM
I wrote a script to find the indexes of all valleys in my data set. I call ChnPeakDetect to do this:
Call ChnPeakDetect("/Time", "/accelChannelXFiltered", "/PeakPositions", "/PeakAmplitudes", "Valleys", -29.43, 100) 'Peak detect to find impact pulse
I validated my code against a known good data set and verified that the detected valleys are correct.
I have a new data set that is very similar to my known good. My script fails to find the valleys in the data.
I attached both the good and bad data sets.
Any ideas why my script fails to find the valleys in the bad data?
05-13-2020 10:49 AM
Hi sirwin,
try to reduce the width from 100 to e.g. 10.
A nice description about the required width is given in the help for the ChnPeakDetect - command.
Greetings,
Vassili