LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find peak height and check the number of pulses

Solved!
Go to solution

First of all thank you very much. Thanks Craig. This is indeed what I was looking for and it works great.

 

I did indeed choose Bali. And that gives accurate results. 

Last question why should we divide by 6?

 

 

Thanks

Eliran

 

0 Kudos
Message 11 of 13
(607 Views)
Solution
Accepted by topic author eliran15

Hi Eliran,

 

What divisor you use, or just a constant threshold value, depends on your data.  If your data is very clean (like everything post except dataset #4) you can make the threshold a large value. Think of this like a trigger level threshold of the scope.    In my example I look for the maximum data pt (MAX). then set the peak threshold as MAX/6.  But you could use MAX/100 or MAX/2.  In trying to make the code suitable for all possible data MAX/6 seemed reasonable. 

 

I used the same value for all methods, but note that the NI peak detector and EBM define the threshold differently.  Threshold for NI peak detector is exactly like scope trigger, value must be greater than that value to be considered a peak.  

 

For the EBM the threshold is the value peak-valley (absolute height) must exceed to find a peak.

 

Good luck!

Craig

 

 

 

0 Kudos
Message 12 of 13
(573 Views)

Thank you very muchHi Craig

 

I noticed as in the example I have attached, the only thing I found is to add about 0.8 to the Delta Y value.

 

The change of value divisor does not fit all situations

The best fit for me is the EBM mode

 

Thank you very much

Eliran

0 Kudos
Message 13 of 13
(551 Views)