05-30-2020 02:45 AM
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
06-03-2020 11:07 AM
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
06-04-2020 01:37 PM
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