Table Of Contents

Downloading and Running an FPGA VI

Last Modified: September 20, 2016

To complete this task, you'll need a host VI, the FPGA VI, and a compiled bitfile for the FPGA VI.

Use the FPGA Host Interface nodes to download, run, and communicate with code on the FPGA.

What to Use

What to Do

Create the following diagram to download and run your FPGA VI to an FPGA target.

Customize the gray sections for your unique programming goals.

To specify the FPGA VI you want the host VI to communicate with, complete the following steps:
  1. Select the Open FPGA VI Reference on the diagram.
  2. Select a build in the Properties section of the Item tab.
When you run this host VI, LabVIEW opens a reference to the FPGA VI associated with the bitfile you selected and runs it on the FPGA you specify in the RIO address input.
Download the FPGA VI specified in the bitfile to the FPGA target and run the VI. The Download FPGA VI and Run FPGA VI nodes replace the code on the FPGA each time you run the FPGA VI, ensuring that the FPGA VI resets properly before each execution.
Interact with and send data to the FPGA by using FPGA Host Interface nodes. In this example, the host and the FPGA VI communicate in the following ways:
  • Read/Write FPGA Control—The VIs write to and read from controls and indicators on their panels.
  • DMA FIFO nodes—The VIs write to and read from a DMA FIFO on the FPGA.
Close every reference created with the Open FPGA VI Reference node with the Close FPGA VI Reference node. If you don't close the reference, the FPGA VI runs until the host application stops running.


Make sure the FPGA VI appears in the Project Files tab as part of the project. Select the FPGA VI in SystemDesigner and make sure you select Bitfile in the Build Output pull-down menu in the Build Options section of the Item tab.


Search LabVIEW for the following installed examples: FPGA Host Interface.

Recently Viewed Topics