LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert IQ data to power vs. frequency

Solved!
Go to solution

Hello & thanks for reading!  I have searched forums and tried to solve this myself.  I have a USB spectum analyzer from Tektronix which outputs it's data in I/Q form.  I need to see the data as you would on a standard spectrum analyzer display.  When ever I download an example it seems toolkits and .vis are called for which I don't have.  I am using LabView 2014 full development version only.  I have an example python program, but  am having trouble translating to the proper LV .vis.  I'll attach the example program.  I know I should know this, but its been years since I dealt with complex numbers etc.

 

Help will be greatly appreciated.

 

Sincerely,

Stan

0 Kudos
Message 1 of 10
(6,226 Views)
Have you installed a LabVIEW driver with Help> Find Instrument Drivers? You would also need NI-VISA installed.
Message 2 of 10
(6,218 Views)

Thanks for the reply.  Sadly, this model doesn't support SCPI type fetch commands, and LV can't see it with VISA.  I have an open ticket(7436871) on the latter, but never got a resolution.  I have had to rely on imported .dll files, which seem to work. 

0 Kudos
Message 3 of 10
(6,211 Views)
It would have helped if you had provided the model number (which you still have not done).
0 Kudos
Message 4 of 10
(6,208 Views)

RSA 306.  (Sorry)

0 Kudos
Message 5 of 10
(6,196 Views)

BUMP!

 

Still looking for an answer.........

 

Thanks!

0 Kudos
Message 6 of 10
(6,126 Views)

Hi,

 

I'm not entirely clear on which functionality you're having trouble replicating in LabVIEW, but you mentioned complex numbers; if you right-click on your block diagram to access the functions palette, and go to Numeric->Complex, you'll find a number of VIs that are built for working with complex numbers.

 

Here is a link to the help pages for these functions:

 

Complex Functions

http://zone.ni.com/reference/en-XX/help/371361L-01/glang/complex_functions/

 

 

0 Kudos
Message 7 of 10
(6,102 Views)

I know this is a fairly old topic, but I'm looking for a solution too. I did come across the following on the TEK site, but it doesn't satisfy me.

 

http://www1.tek.com/forum/viewtopic.php?f=8&t=6564

 

Basically, it says you can use a different model LABVIEW driver as long as you run the SignalVU-PC behind LabVIEW (and install the VISA drivers in a specific order). I don't want to require the SignalVU software to be running just to work with the device. I've seen some other threads that dead-end with the comment that the SignalVU software handles GPIB emulation.

 

Has anyone figured out how to interface with the RSA306 without running SignalVu in the background?

0 Kudos
Message 8 of 10
(5,843 Views)

If you have a spectrum in complex I,Q values vs frequency, to convert to power get the amplitude (=(I^2+q^2)^0.5) (or use re,im to amplitude and phase function in LV and just take the amplitude), then square it. This gives a measure of power vs frequency- you may need to multiply by a constant but that depends on your units and scaling.

 

0 Kudos
Message 9 of 10
(5,818 Views)
Solution
Accepted by N2STC

 

I believe the function you are looking for is FFT Power Spectrum and PSD:

IQ to Spectrum.png

Message 10 of 10
(5,801 Views)