LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the index of the minimize point

Solved!
Go to solution

Need to get the index of the minimize point, marked as red cycle in the attached word file.

 

It is a collected data from different sample devices, so the curve may change a bit each time. But the overall profile is the same, just 2 main peaks.

 

I tried to detect the Y difference to see when the difference values change from negative to positive.

But, there are noise as tiny peak when zoom in, shown in word file. Then tried to use median filter to make it smooth. (Maybe better method should be used.)

But there are still some bigger regional peak. Any suggestion?

 

Is there any labview function or better algorithm can make it. Many thanks for your help.

0 Kudos
Message 1 of 8
(3,277 Views)
Try this moving average filter.
Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
Message 2 of 8
(3,275 Views)

Thanks, it may solve the noise level small peak, but for wider regional peak, may I know how to remove.

 

Is there any way to detect it since the min point is quite sharp and odd then others.

 

Thanks.

0 Kudos
Message 3 of 8
(3,252 Views)
Solution
Accepted by topic author alex.

How can u say the peak as wider regional peak,Do u want to remove only the minimum index data or u want to smoothen the entire data i tried with moving average filter find the attached vi.


 

Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
Message 4 of 8
(3,240 Views)

As shown in the attached shot, there are still 2 more red cycles before the real one, but the difference of the 3 red cycles is:

The curve at the 3rd red cycle is not Smooth in math, that is its 1st order Derivative at the 3rd cyccle is not a Continuous function.

 

Is there any way to detect it?

0 Kudos
Message 5 of 8
(3,203 Views)

A trick I often use is to sample the data with a much higher speed than needed. Then I apply some simple averaging methods or and median filter. After that I downsample the signal to a adequate rate by averaging x samples. This have been a saver for me more than once. How successful it is depends of noise character type. It just a hint as it may not be applicable in your application 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 6 of 8
(3,195 Views)
Sorry, the attachment missing. Now the case is there are more than 1 valleys.
0 Kudos
Message 7 of 8
(3,191 Views)
Now as your curve is smoother have tried the "Peak Detector VI"  Owning Palette: Signal Operation VIs


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 8 of 8
(3,174 Views)