LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

complex waveform and FFT

Hello everyone!!

 

I'm using the MT RFSG Generate PSK.vi that you can find in the examples menu of LabVIEW. I get a good singnal because I see it in an Spectrum Analyzer, but now I want to see the same signal but in the LabVIEW. The problem is that the vi has an output which name is "complex waveform" and I don't know how get the graph from that output. I know that I must use the FFT to obtain the spectrum but isn't directly so I don't know how to do it. Have I to use some vi between the generate PSK. vi and the FFT.vi?? How could I do it?? What FFT.vi is the best for my problem? I need help.

 

Thank you.

 

0 Kudos
Message 1 of 12
(4,863 Views)

I do not have the modulation toolkit so I am not sure what the complex waveform is.  The standard FFT.vi is polymorphic and will accept an array of complex numbers as an input.  Many of the spectrum VIs which take waveforms as input use the FFT.vi internally so they may be able to accept complex waveforms.  The detailed help for the Extract Multiple Tone Information.vi explicitly states that it can accept complex waveforms.

 

Graphs can accept complex arrays although they only plot the real part.  To see both parts use the complex to Re and Im or complex to r, theta functions.

 

Lynn

0 Kudos
Message 2 of 12
(4,858 Views)

Hi,

The MT RFSG Generate PSK use I/Q data. It's a complex representation with the In phase signal and the Quadrature signal. This complex waveform can be used directly with a fonction like FFT Power Spectrum.

 

 

Cordialement,

Simon D.
CLA | Certified LabVIEW Architect
CTA | Certified TestStand Architect
0 Kudos
Message 3 of 12
(4,851 Views)

I'm trying use directly my complex waveform with the FFT Power Spectrum and it does not work. I've connected the complex signal in the time input (and in the others) and nothing....

0 Kudos
Message 4 of 12
(4,832 Views)

Can you post your vi?

 

Cordialement,

Simon D.
CLA | Certified LabVIEW Architect
CTA | Certified TestStand Architect
0 Kudos
Message 5 of 12
(4,826 Views)

Yes, of course. I want see the spectrum of the complex waveform that is and output of the Continuos BB-PSK Generation.

0 Kudos
Message 6 of 12
(4,824 Views)

OK, it's because the output of this vi is a typdef (ComplexDataWaveform.ctl), not a waveform. You can try something like that:

wfm.JPG

You can extract your data from the typedef cluster and build a waveform.

 

Cordialement,

Simon D.
CLA | Certified LabVIEW Architect
CTA | Certified TestStand Architect
Message 7 of 12
(4,821 Views)

With this solution It still doesn't work. If I connect the output complex waveform with the "get waveform componentes.vi appears a error message that says: you have connected two terminals of different types. The type of the source is typedef complex data waveform.ctl cluster of 3 elements. The type of the sink is waveform (dbl).  

0 Kudos
Message 8 of 12
(4,794 Views)

Yes, you need to use unbundle cluster instead of get waveform compenent. It's because your output is a typedef cluster (named 'complex data waveform') and not a waveform. 'waveform' is just its name, not its type.

Cordialement,

Simon D.
CLA | Certified LabVIEW Architect
CTA | Certified TestStand Architect
0 Kudos
Message 9 of 12
(4,788 Views)

Thank you very much, now it works perfectly. I would ask another important thing for me. In the NI-RFSG Configuration Mode, in the option generation mode I choose a continuos cosaine but I don't know which are the parameters of that cosaine. I would like plot this signal and see it. Is that possible???

 

 

0 Kudos
Message 10 of 12
(4,777 Views)