ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

Create bin - "Write Waveform from File.vi".

In this NI-RFSG version 1.2 there is a new vi called "Write Waveform from File.vi".
It load the file "Chirp.bin" into on board memory and up-converter to  user expect frequency and power.
 
I have several question on using this.
1. Is possible to use RFSA to capture waveform and storage into this format "xxx.bin" for this RFSG example? Is there any Vi or VC++ able to do it? Or..
2.Is there any file size limitation of "xxx.bin"? Since we are using the on board memory of PXI-5441(32MB) so we would like to know the limitation.
 
I also found a examples called "ni5660_Fetch_and_Write_IQ_Data_in_Chunks.vi". But it storaged into I.bin and Q.bin. These 2 files looks not so suitable for "Write Waveform from File.vi". Or maybe my setting isn't correct. Or maybe it should not be separate to I-Q.(use IF??)
I am trying to capture a 2.048MHz signal into  "xxx.bin" and use RFSG to re-generate it.
 
Is possible to guide me to do it? Thanks a lot.
I appreciated!
0 Kudos
Message 1 of 3
(7,805 Views)
Hi,
*.bin stands for binary file. After looking at the code it became clear as what the data format inside the binary file was. The binary file stores data in I16 (signed 16-bit format). Each I and Q data point will scaled to the range of I16 and then stored in contiguous locations.
I am attaching an simple example for IQ Write and IQ Read to help you understand writing and reading IQ Data. In the attached zip file, IQ Write demonstrates how to write to a file and IQ Read demonstrates how to read form file.
Also, binary file read and write examples in LabVIEW's example finder would be good starting point.
 
Have a great day!
Thanks,
Kalyan
Kalyanramu Vemishetty
Automated Test Systems Engineer
National Instruments
0 Kudos
Message 2 of 3
(7,779 Views)
Thanks.
The program works but It looks the output signal  "Span" not enough. Since I use OFDM signal so the output modualtion signal did not display large enough.
 
 
0 Kudos
Message 3 of 3
(7,458 Views)