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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with FFT

Hi all,

 

I am using RFSA fetch IQ as mentioned in the attached message. This Vi gives me data in time doamin (y axis in voltage). When I use FFT to get power spectrum (in dBm) I always get wrong amplitude but the x-axis is right(frequency axis).  Has anybody face like this problem before? thanks in advance

 

regards

0 Kudos
Message 1 of 9
(3,652 Views)
How is the amplitude "wrong"?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 9
(3,629 Views)

I mean in term of values, they are wrong.  let's say i generate -30 dbm, but I got a round 50 dbm.. Also when I do power sweep. let's say 10 values between -20 and -30. I also get values between -50 and - 75 dbm. ?? any idea??

0 Kudos
Message 3 of 9
(3,614 Views)

Please don't show us pictures of a tiny part of your VI -- we can't "see" the rest of your code, and more important, we can't try running it ourselves to understand its behavior.  It is also harder for us to try things to fix it.  Attach the VI itself -- if you need to attach 3 or 4 VIs (or VIs and data), put everything in a folder, compress the folder, and attach the .ZIP file, please.

 

Bob Schor

0 Kudos
Message 4 of 9
(3,586 Views)

I'm going to rant on the help file first.   #^@#^@#^ Darn it! the polymorphic selector label should have at lease some consistancy with the help file drop-down menus for the poly instances!  </Rant>  Put the words in the same order.  use the same words.  not too difficult in English, I don't know how it localizes.  Still, it is annoying as an ex-spouse that the poly labels don't match between the help file and the block diagram!

 

Now that that is off my chest.  did you read the help?

 

Y returns the complex-value time domain data array.

The real and imaginary parts of this complex data array correspond to the in-phase (I) and quadrature-phase (Q) data, respectively. To calculate the instantaneous power of a sampled I/Q point, use the equation (I2 + Q2)/2R, where R is the input impedance in ohms (Ω). For NI RF vector signal analyzers, R=50 Ω.

 

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 5 of 9
(3,554 Views)

sorry about this, kindly have a look for the attached code.

 

Jeff,  Yeah sure I read the help and you can see that I did exactly as mentioned in the help. but this will give me the right amplitude but in time domain. thus, I tried to insert it first to FFT then use the things in the help.

 

Thanks in advance

Regards

0 Kudos
Message 6 of 9
(3,527 Views)

Your "forum.zip" file is actually a .rar, which I was able to open after I changed its extension to .rar.  Not sure how you managed to do that ...

 

Bob Schor

0 Kudos
Message 7 of 9
(3,514 Views)

this is another one.

0 Kudos
Message 8 of 9
(3,501 Views)

Hi,

 

I was looking back to my old version of the code and I found that when I send one rf signal, the FFT gives me right value of Power. but when I use power sweep which is generating more than one signal, the FFT gives me wrong power measurements as per attached in the above example..  any advice?

 

Regards

0 Kudos
Message 9 of 9
(3,476 Views)