LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I find the first peak in a data set?

Hi
 
I was wondering how do i find the first peak of a data set?
 
Thank you
 
 
 
 
0 Kudos
Message 1 of 4
(2,785 Views)

Hi,

 

Using a while loop, with the iteration connected to the index of your data set, check if the previous value (use a shift register) was bigger than the current. If so, then stop. The previous value was your first peak…

 

Ahum, hope tis is clear ..

 

Kind regards,

0 Kudos
Message 2 of 4
(2,776 Views)

Hi

 

Thanks for that.

 

I having trouble in getting it to  work. I will send what I have got so far.

 

Thanks.

0 Kudos
Message 3 of 4
(2,761 Views)

Try this.
Depending on what version of LV you have, you may be able to use the peak detect vi.

Hope this helps

0 Kudos
Message 4 of 4
(2,757 Views)