Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

program for an adder in labview fpga PCI5640

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..

Download All
0 Kudos
Message 1 of 6
(3,493 Views)

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 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 6
(3,482 Views)

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. 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 3 of 6
(3,479 Views)

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..

 

 

 

 

0 Kudos
Message 4 of 6
(3,466 Views)

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.

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 5 of 6
(3,462 Views)

Hello Sunsun,

 

I hope your problem is resolved. Please dont hesitate to get back to us in case of further queries.

 

Thanks. 

 

Karun Jain 

0 Kudos
Message 6 of 6
(3,437 Views)