LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why no valley detected

Solved!
Go to solution

Hi

 

Something seemingly simple I can not get to work...

 

Please see the attached VI which contains an array constant (which represents a typical set of acquired data points) on which I perform a peak/valley detection.
I would like to find the valley(s) but no matter what 'width' is used it never finds any valleys.

 

Any ideas as to why this may be or suggestions on how else to determin the valley location?

 

Many thanks for your help!

 

Jack

0 Kudos
Message 1 of 2
(2,443 Views)
Solution
Accepted by topic author JTRI

Hi there,

 

You need to wire in a value for the 'Threshold' input. This input tells the VI to ignore any valleys below the threshold value. As there are no valleys in your data set below 0, you will not detect any if you don't wire in this input.

Should you set the threshold value to '800' you will detect one valley. If you set the threshold value to '1200', you will detect three valleys.

 

Hope this helps.

 

Regards,

Dave.

Senior Software Engineer
www.Adansor.com
Message 2 of 2
(2,430 Views)