11-11-2008 12:06 AM
Hi
I want to program PCI 5640R .For this I am using labview fpga module s/w.For a beginning , I am trying out an adder pgm.ie.giving 2 inputs from the host and trying to take the output from fpga using DMA.So where the addition is to be performed? in host or fpga? If its in host, then we 've to download that output to fpga and the o/p is to be read from the fpga,right sir?In the other case, the addn is in fpga and that o/p is to be read using DMA..??I am a beginner in fpga pgming..so pls give me a reply and if anyone have a VI concerning with this pgm,pls send me..
Here I am attaching the host and fpga VIs..Plss send me a reply as early as possible..
Thanx..
11-12-2008 08:07 AM
Hi sunsun,
Thanks for the post and I hope your well!
I noticed you hadn't received any support thus far.
I would suggest doing the add on the fpga - as an adder can be done in harder easily. Normally the FPGA is used for Inputs and Outputs, and any functions the user wants in hardware. And then any procesing is do on the Host.
My understanding is to acheive Deterministic Data Transfer Between VIs you would need to use Real-Time FIFO. Are you familar with this?
If not, please take a look at this developer zone artcile:
Real-Time FIFO for Deterministic Data Transfer Between VIs
http://zone.ni.com/devzone/cda/tut/p/id/3934
and there is also an example,
Real-Time FIFO Example
http://zone.ni.com/devzone/cda/epd/p/id/1898
Please let me know what you think and how you get on,
Kind Regards
11-12-2008 09:31 AM
Hi again,
I would also like to add, looking in the example finder, Tools>>help>>Hardware Input / output >> R Series >> Basic IO.
This examples shows the basic method.
Please let me know,
Kind Regards,
James.
11-14-2008 06:25 AM
hi
thanx for your reply..we've no real time module s/w installed..so we can't access the RT FIFO..Is there any free download for this s/w?
Actually I want to transfer 2 data i/ps to fpga from host and trying to read out the result of that two nos added..just for testing the fpga card..
Is this concept correct?
Host vi...:-
fpga ref-->host to fpga fifo write-->fpga to host read-->close (can i call write and read consecutively without any wait statement?)
fpga vi..:-
host to fpga read-->addn-->fpga to host write
But I got the error as " the transfer did not complete within the timeout period or within the specified number of retries"..
Please help me ....
thanx..
11-14-2008 07:48 AM
Hi,
Maybe this forum post will clarify things.
It contains lots of advice regarding FIFO.
I do beleive you need NI Software to program NI PCI cards.
Kind Regards,
James.
11-17-2008 08:56 AM
Hello Sunsun,
I hope your problem is resolved. Please dont hesitate to get back to us in case of further queries.
Thanks.
Karun Jain