This example shows the simple functionality of a DMA FIFO used to send data to and from an FPGA target.
This project is configured to work with a PCI 7831R on a Windows computer, but this same code will work on any FPGA target and a Windows or a Real-Time Host.This example simply generates random data and sends it down to the FPGA using a Host to Target scoped FIFO. The FPGA then sends it right back up to the Host VI using a Target to Host scoped FIFO. In a real application you would want to process data in between, or just use one FIFO for input OR output.
For more general info on using DMA FIFO's check out this tutorial: Using DMA FIFO to Develop High-Speed Data Acquistion Applications for Reconfigurable I/O Devices
Steps to Implement or Execute Code
1. Open the attached project
2. Add your FPGA target to the project
3. Copy/Move all the items from the existing FPGA target to the target in step 2.
4. If you've added a RT Host target Copy/Move all the items from the existing Host to the new Host target.
LabVIEW 2009 or later
LabVIEW FPGA Module
Any NI FPGA target
You will need to recompile this VI for different Targets.
**This document has been updated to meet the current required format for the NI Code Exchange. For more details visit this discussion thread**