From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-29-2014 11:01 AM
I just want to calculate the quality of the peak in a FFT, defined as you can see in the attached file.
For that, I would need to know how can I calculate in Labview the index or indices (x-value) correspondant to a certain amplitude value of the function.
Kind regards, and thank you for reading,
Jose
Solved! Go to Solution.
08-29-2014 11:07 AM
If you just want the maximum, then use Array Max & Min. One of the outputs is for the index of the maximum.
08-29-2014 11:08 AM
thanks, but I do not want the maximum, but the index of the half of the maximum
08-29-2014 11:14 AM
Look in the Signal Processing palette for pulse measurements, peak detector, and threshold detector. One of those VIs or some combination can probably do what you want.
Lynn
08-29-2014 01:27 PM - edited 08-29-2014 01:29 PM
If you know the lineshape (e.g. Lorentzian), you can use nonlinear fit. This will give you the most accurate value.
In the most simple case (insignificant offset and noise, no other peaks) you can apply the following code (if there are other peaks, then take a apropriate array subset before applying the code). To get correct units, just scale with df.
09-02-2014 03:39 AM
Thanks a lot!!!!