02-09-2017 08:39 AM - edited 02-09-2017 08:40 AM
Hello everyone,
I have an interesting problem (at least for me) which I guess LabVIEW masters will have a clear solution. In the attached image you will see a graph. In the graph I have to find the depth value of the deep that is marked as "X". In this purpose I used max & min array function but as you may guess it found the point A as max and point B as min point respectively. Do you guys have any suggestions or solutions for that?
p.s: These values received from an interrogator. For your reference I have attached my VI in 2014 version and saved the values as "default". So that you may directly go along with the actual parameters.
02-09-2017 08:46 AM
What you are looking for is the peak detector vi.
02-09-2017 08:51 AM
Okayy. How you thing it will work exactly?
02-09-2017 08:55 AM
@TITAN-x wrote:
Okayy. How you thing it will work exactly?
Read the help of the function. Just a sec google search also gives you detailed info:
http://digital.ni.com/public.nsf/allkb/2B685D5B2A919E2A8625654C006AF03C
There is even an example VI, see where to find it behind the above link.
02-10-2017 02:39 AM
Hello Blokk, thank you for your reply. I know what is peak detector vi and how to use it as I have already used it few times previously. But the point I marked in the graph is neither a peak nor a deep point. That is why I was asking how to use the peak detector vi. I meant what algortihm I have to follow in order to overcome the problem. If you have any idea about it I would be grateful if you would share it with me.
02-10-2017 02:59 AM
But the point I marked in the graph is neither a peak nor a deep point.
No, it is a local valley (you call it "deep"). The peak detector VI should find it, if you use the proper parameters. You should play with the "threshold" and "width" parameters in order to find such valleys.
02-10-2017 06:24 AM
Yes Blokk you are right it is valley. But unfortunately I couldn2T find the solution. Eventhough, I played around the width and threshold. I am still working on it. But if there is any suggestions I would be happy to remark.
02-10-2017 06:57 AM
02-10-2017 07:05 AM
Can you please check the attached file please GerdW.
02-10-2017 07:25 AM - edited 02-10-2017 07:27 AM
Hi N.,
limit the range of your data to interesting parts, then search for a sufficient valley:
(When this peak is always as clear as in your example data you might find it using a running mean filter and check for "extremely far away" samples…)