Hi Sreenivasulu
Concerning the test_mod1(HOST).vi.
You need to create IQ data; I refer to the previous links on what IQ waveform data is.
You are starting out with the AM Message Signal.vi. This VI basically creates an IF signal, basically an AM signal at an IF (or carrier) frequency. Then you pass this signal to the MT Modulate AM (DSB).vi. You are taking a baseband signal and IF carrier, and creating a baseband (IQ) signals that is now going to have your basic message signal and the IF carrier modulate another carrier. Passing this signal to the MT Upconvert Baseband.vi then takes the IQ signal to upconvert and adds a carrier. This signal is no longer an IQ complex signal, but a real signal at this point, and not suitable for downloading to the IF-RIO.
The code should look something like this modification of the ni5640R Analog Input and Output (HOST).vi this:
This uses the Sine Waveform.vi and the MT Modulate AM (DSB).vi VIs.
Based on the code that you had, I really believe that it is in your best interest to learn some signal processing theory, and specifically IQ complex waveforms. The previous references are a good start.
Saving a NI 5640R project to another name. When I opened your host VI, the VI was still looking for VI associated with a .lvlib file that is still named for another project. One of the steps in the renaming project is to open the Host VI as well as the ni5640R VI Tree.vi. Then rename the .lvlib file. This will ensure that the name change is propagated through the project VIs.
In the ni5640R Analog Input and Output example project, the IQ complex waveform is created in the Host. (In the example, the waveforms have been saved as constants.) This waveform has no information concerning the transmit frequency. The transmit frequency is set by the AO.Center Frequency (Hz) front panel control, which eventually sets the NCO frequency on the DAC. The FIFO goes on down to the FPGA code.
Have you looked at the ni5640R Analog Input and Output (FPGA).vi yet? This is where the data goes from the host and then onto the DAC.
Jerry
Message Edited by Jerry_L on
03-12-2008 10:19 AM