LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Valley Detection Query

Hello There,

 

I am having trouble detecting multiple valleys within a bell curve type shape (see pic). The valleys are moving horizontally and I need to detect each of their positions in real time. The other issue is that the dips increase and decrease in magnitude thus making it difficult to use the dip detect function as it keeps jumping from one to the other.

 

any help would be greatly appreciated,

 

thanks.

0 Kudos
Message 1 of 6
(2,700 Views)

Are you using peak detector vi?



------------------------------------------------------------------------------------------------------
Kudos are (always) welcome for the good post. 🙂
0 Kudos
Message 2 of 6
(2,686 Views)

Hi TriboBoy,

 

From what I understand you are trying to detect the valleys of your bell shaped curve as and when they arise.  What have you tried so far?

 

If you have not done so already, you may want to take a look at the examples in the example finder.  While in LabVIEW go to Help>>Find Examples... and search for "Valleys" in the search tab.  This will bring up 3 examples for finding peaks/valleys of a waveform.  I would suggest taking a look at the "Advanced Peak Detector.vi" example.

 

I hope this helps but feel free to post any more questions you may have.

 

Regards

Marshall B
Applications Engineer
National Instruments UK & Ireland
Message 3 of 6
(2,667 Views)

Hello,

 

Yes I have been using the peak detection.vi and have gone through the examples, but as the valleys keep moving left and right and up and down, the thresholds keep changing and the output from the peak detector keeps jumping.

 

So far I have created an idealised waveform and divided through, getting rid of the curve. I have then inverted the result and squared it giving nice sharp peaks. But I am still having trouble detecting the peaks as they are moving around too much.

 

Thanks again for the help

0 Kudos
Message 4 of 6
(2,659 Views)

Hi TriboBoy,

 

Have you tried setting the threshold level above your data so that the algorithm used within the Peak Detection and Display VI considers all of the valleys occurring below it?

 

Below is a screen shot of the resulting graph using the Peak Detection and Display VI example in Example Finder:

 

Identifying Valleys.png

 

The blue threshold line corresponds to the valley data points being considered and has been set to a value higher than any expected data points.  

 

It is also worth noting that the width used should be as low as possible (limited to a value of 3) so that the maximum number of data points are considered.  

 

Let me know if this helps you at all.

 

Regards

 

Marshall B
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 5 of 6
(2,647 Views)

Hi TriboBoy,

 

Have you been able to track the locations of all the valleys in your waveform using the information I provided?

 

Regards

Marshall B
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 6 of 6
(2,620 Views)