IF-RIO

cancel
Showing results for 
Search instead for 
Did you mean: 

Some errors in HOST.VI+ni 5640R

Hi sir/Madam.
i am Sreenivasulu.i have some issues on generating modulation signal.
i developed HOST and FPGA VIs for single tone successfully.But i am unable to develop for modulated signal.Here i am sending both VIs for single tone and modulated signal.
In single tone HOST.VI i used ni5640R DAC configure for single tone mode.vi
In modulation  HOST.VI i used ni5640R DAC configure for Quadrature mode.vi,here i am getting some errors.i am attaching that errors image also(test_mod_errors.jpg).

Please go through this and correct me.

If i want use ni5640R Input and Output example project for my application(generating modulated(AM,QPSK,BPSK,4-FSK and OOK) signals) what are the main changes i have to do in HOST and FPGA VIs.

Thanks & regards,
Sreenivasulu.O


Download All
0 Kudos
Message 1 of 19
(8,525 Views)
Hi Sreenivasulu
 
The VIs are not very helpful as they do not include the project and the rest of the files included in the project.  As is they open with a lot of errors in this state already.
 
From your attached image, I have a few comments.
 
The first issue I see is that the invoke nodes seem to be broken.  Yet you have good Read/Write nodes.  Is this VI associated with a project?  Is this a modified shipping example that is installed by the ni5640R software?
 
Do you have a DMA FIFO in the project labeled “FIFO”?  The “Configuring the NI PCI-5640R Target” section of the “Getting Started with the NI PCI-5640R IF Transceiver and the LabVIEW FPGA Module” shows how to create a DMA FIFO in the LabVIEW project.
 
This link has more info (There is also some info in the “Getting Started with the NI PCI-5640R IF Transceiver and the LabVIEW FPGA Module”) on LabVIEW Projects in general:
Managing FPGA Applications in the Project Explorer Window (FPGA Module)
https://www.ni.com/docs/en-US/bundle/labview-fpga-module/page/managing-fpga-applications-in-the-proj...
 
Here is some more info on Invoke Nodes:
Invoke Method (FPGA Interface)
https://www.ni.com/docs/en-US/bundle/lvfpga-api-ref/page/vi-lib/rvi/interface/nirvimethod/nirvimetho...
 
I also recommend starting from an existing example installed by the ni5640R software installer.  The “Using the ni5640R Template” section of the Getting Started Guide describes the steps needed to rename the existing files and create a new project.  The example uses the Template example, but the instructions work on any similar LV FPGA project for the NI 5640R.
 
One last comment about the image.  You are passing in an express block wire down to a DAC Config IQ VI.  I’m not sure what you are doing there.  Are you trying to download a waveform?  I’m not an expert on the express blocks, but I believe that they are floating point data, probably doubles, if there is any conversion/coercion taking place, it is not going to work.  If you look at the Input and Output example, data sent down to the DACs must be I and Q I16 data, but converted to U32 for the DMA process.
 
Jerry
0 Kudos
Message 2 of 19
(8,504 Views)
Hi Jerry Sir,
Thanks for your reply.Here i am asking so many doubts sir.urgently i have to generate some modulated signal.please clear my doubts sir.
my project is stucked bcaz of me only.
Here i am sending two projects( test_sree(modulation-not working) and test_sin(sinewave-working)).
for generating modulating signal wich mode i have to use ni5640R DAC configure for single tone mode.vi or ni5640R DAC configure for Quadrature mode.vi.

You are asking "
You are passing in an express block wire down to a DAC Config IQ VI.  I’m not sure what you are doing there.  Are you trying to download a waveform?"-----Here i am doing i am giving modulated signal to DAC.can i give like this. for generating modulated signal i used two methods.i am attaching AM_mods.VI,please see it and correct me to generate modulating signals(AM.QPSK,BPSK amd GMSK).

i had look on input and output example project.in that he was used
ni5640R DAC configure for Quadrature mode.vi.i think in that he was henerated QAM signal.insted of QAM i tried to given AM modulated signal.but i fialed.

In NI 5640R example projects  ni5640R IQ Output project is also same as
ni5640R I/O project with out input(i mean only IQ out).
can i use this one for my application(i need to generate some modulated signal in HOST and i have to get that modulated signals  from ni 5640R card DAC output
for providing as a input to other module(RAD-2,Pentaland)).In this project where i have to give my modulated signal.In the tranmitt frequency place or QAM place. tell me which one is best for my application ni5640R IQ Output  or ni5640R input and ouput.If possible tell me how can use modulation tool kit.



Thanking you so much sir

Thanks & regards,
Sreenivasulu.O



0 Kudos
Message 3 of 19
(8,417 Views)
Hi Sreenivasulu
 
I was able to open and look at your code in the project. I did not see any of the suggestions from my previous post implemented.  If we are to move forward, I need you to take my suggestions to move forward.
 
A DMA FIFO named “FIFO” must be added to the project for the broken Invoke Nodes.  See my previous post for details.
 
There are two new issues that I see. 
I should have seen this previously.  In addition to the fact that you are not converting/scaling the waveform to the I16 data type, I now see is that you are not creating IQ data. You are trying to download a real waveform.   The NI 5640R module only uses IQ data. 
 
Another excellent source of information is a book by Richard G. Lyons.  “Understanding Digital Signal Processing”.  This is a book that I use and my personal opinion.
 
The second issue I see is that you are trying to download a waveform to VI (ni5640R DAC Configure for Quadrature Mode.vi) that does not take a waveform.  I refer you to the Input and Output example on how to download a waveform to the FPGA.  I also suggest that you resave the Input and Output example as described in the Getting Started guide and using that as a model for creating your generation code.
 
Jerry
0 Kudos
Message 4 of 19
(8,369 Views)
HI Jerry,

I am Sreenivasulu.I addedDMA FIFO(see it in the project test_sree---OutputIQ, target-scoped,bcaz i need to get signal from HOST to Target) to the project for the broken Invoke Nodes.I think this project seems to be get signal from Target to HOST.

ni 5640R input and ouput project i modified as a test_mod1.i am attaching that one.please see it.In HOST.VI instead of QAM i placed AM signal.Is it correct to get AM signal.i think this is the correct procedure to download into FPGA.

Can i use ni 5640R IQ output example project for my application.(here i am attaching(test_IQ) related to this type of example project.please correct me)


Please give me clear idea where i have to generate my signal( i think in HOST.VI) and then how i have download it to FPGA.VI to get signal from card DAC output.i seen in input and output example project.in that i din't get what is that transmitt frequency.He downloaded his signal(QAM) in to FILL OUTPUT FIFO.

Thanking you so much

Sreenivasulu.O


0 Kudos
Message 5 of 19
(8,269 Views)
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
0 Kudos
Message 6 of 19
(8,188 Views)
Hi Jerry,

i seen ni 5640R input and output example program,but i coun't find what you send that image.i didn't get that HOST to Target FIFO and AO sample to write.

if u have that image VI plz send it to me.that is very use full to my applications.i'll follow and i can understand.

still i have some problem to rename project.i followed getting strated guide.ok i can clear problem.

in the ni 5640R IQ output example project also we can download our waveform to FPGA.presently i am using that one to generate modulated signal.
here i am attaching(test_IQ--in this so many HOST.VIs are ter don't get afraid) that one please see it and correct me.tell me this is correct one or i need to use input and output example.
in this input and output example Target to HOST also ter.i think for my application this is not neccesery.

In every post i was asked so many doubts.please don't get irritate.i am having less time to complete this work.so that i am asking different Q's?.
please do help me to come out this problem.now i get some confidence soonly i'll come out from this problem with your HELP.



Thanking you sir.


Sreenivasulu.O





0 Kudos
Message 7 of 19
(8,173 Views)
Hi Jerry,
To load signal into DAC intsead of normal FIFOs(what u sent in that AM mod image)  i am using Purge output FIFO and Fill output FIFO(available in ni 5640R IQ output Example project).In this also hewas taken I and Q data.

for my application analog input is not necessary.i want take output from card only.
tell me what i am using that fifos are correct or not.


Sreenivasulu

 
0 Kudos
Message 8 of 19
(8,067 Views)
Hi Sreenivasulu
 
I thought that you had previously said that you were using ni5640R software version 1.1.  The IQ output example is an older example before DMA on the output was supported.  DMA from host to module is now supported on LV 8.2 and higher and ni5640R 1.1 and higher.  This is the method shown in the Input and Output example.  Which will be installed with version 1.1.
 
I suggest that you uninstall the version of ni5640R software that you have now and install the newest version from here: https://www.ni.com/en/support/downloads/drivers/download.ni-5640r-driver-software.html
 
Jerry
0 Kudos
Message 9 of 19
(8,008 Views)
Hi Jerry,
Now i don't have time to do experiments with version 1.2.i 'll continue with this version(V 1.1) only.
I seen your reply here(http://forums.ni.com/ni/board/message?board.id=ifrio&thread.id=615&view=by_date_ascending&page=2).
in that you told  you can  acquire continuous signal  by using some VIs(what you sent).in that stream to disk one is there.what it will do,i think it will stores data(what you given in analog input) into disk.Is there any reverse process like from disk to DAC output.i have some modulated data file(.dat,.txt,.csv Etc)in my harddisk(generated using matlab).if ter like this process please give clear idea sir.
why because i am asking like this short ways i need to generate modulated signals by this month 20th.if not leave this procedure.

give me clear idea on ni 5640R analog input and output example project(i got that example project).i tried this one,i tried to given PSK and AM signal(not yet same time).but i didn't get clear waveform(output).
here i am attaching the image please see it correct me.

Thanking you sir

Sreenivasulu.O


0 Kudos
Message 10 of 19
(7,999 Views)