LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Power Spectrum peak calculator

Hi,

I am using the "fft power spectrum.vi" to calculate an FFT on a wave and the output of that is some bundled wire called power spectrum. I was wondering is there an easy way to take this output and find and display all the various peaks in the power spectrum? Thanks.
Intern NSWCCD Carderock.
0 Kudos
Message 1 of 5
(3,305 Views)
hello,

did you try the VI "Peak Detector.vi" in the palette:
"Functions -> Analyze -> Signal Prcessing -> Time Domain"

regards,

robert h
0 Kudos
Message 2 of 5
(3,301 Views)
Yes, I did try that, but the problem is I don't understand the inputs required for it as it requires
"X" a set of points, but when you run the power spectrum you get a bundled wire with various parts and I'm not
sure which of these to wire into the peak detector as everything I have tried has given me wierd values. Thanks for
any help.
Intern NSWCCD Carderock.
0 Kudos
Message 3 of 5
(3,299 Views)
hello,

you must unbundle the cluster, which is returned by the power spectrum. take the "magnitude", which is the array, which contains the information about the spectrum.

regards,
robert h
Message 4 of 5
(3,296 Views)
It worked, Thanks a lot for the help.
Intern NSWCCD Carderock.
0 Kudos
Message 5 of 5
(3,291 Views)