To transfer only the most current data between the FPGA and the host with minimal delay and low overhead, use panel controls and indicators instead.
Customize the gray section for your unique programming goals.
|In a resource collection (.grsc) targeted to the FPGA, create a Host to Target FIFO. Use a FIFO constant to reference the Host to Target FIFO that you created. Wire this FIFO reference to the Read FIFO node.|
|Process the data sent from the host. Use the timed out? output of the Read FIFO and Write FIFO nodes to determine if the read or write operation is successful.|
|In a resource collection (.grsc) targeted to the FPGA, create a Target to Host FIFO. Use a FIFO constant to reference the Target to Host FIFO that you created. Wire this FIFO reference to the Write FIFO node.|
|Select the Open FPGA Reference node and select a mode of assigning an FPGA bitfile or application on the Item tab. You must assign a bitfile or application before you can select FIFO references for the Write DMA FIFO and Read DMA FIFO nodes. To obtain a bitfile, you must first compile FPGA code into a bitfile.|
|Perform operations using the host processor before transferring data to the FPGA target. The data you write to the Write DMA FIFO node must use the same data type that you need in your FPGA VI. Convert data types from the host processor to the data type of the FIFO you specify for the Write DMA FIFO node.|
|Select the Write DMA FIFO node and specify the reference to the Host to Target FIFO in the General section of the Item tab.|
|Select the Read DMA FIFO node and specify the reference to the Target to Host FIFO in the General section of the Item tab.|
|The data output from the Read DMA FIFO node contains data written to the DMA FIFO from the FPGA target. Use this output to display data from the FPGA target on the host, or use the host to further process the output data using the host processor.|
If you receive unexpected or invalid data on your host from your target:
Search within the programming environment to access the following installed examples: