Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

Load IQ file/Generate modulated signal from 5646R SG by C++ command

Hello,

 

I am trying to generate some modulated signal from the PXI5646R SG by using C++ code.

 

In order to have modulated signal, a IQ file (txt or tdms) should be loaded first. I would like to know what command I should use to load the IQ files in C++. Or is there any specific way that generates the modulated signal?

 

I checked the niRFSG.h, can not really find a command that works.

 

Thank you,

 

Neo

0 Kudos
Message 1 of 3
(4,876 Views)

Hi Neo,

 

Have you looked into the niRFSG_WriteArbWaveform function? This function takes I and Q data as parameters and will write the waveform to the NI-RFSG device. 

 

If your IQ file is in the TDMS format, the links below may be helpful in determining how to read this file to extract the I and Q data to be used with this function.

 

How Do I Read or Write to a TDMS File Using Third Party Software?

The NI TDMS File Format

Julia P.
0 Kudos
Message 2 of 3
(4,832 Views)

Hello, Julia,

 

We tried to read the TDMS file by following an example in NI(The NI TDMS File Format). It does not work, always retruns "unexpected error".

 

We found a command to upload the IQ file in SG and generate the modulated signal. 

It requires to install NI-RFSG Playback Library.

 

Best regards,

 

Ne0

0 Kudos
Message 3 of 3
(4,787 Views)