LabVIEW automatically downloads a compiled FPGA VI to the FPGA target when you invoke the Open FPGA VI Reference function. LabVIEW also automatically compiles, downloads, and runs an FPGA VI on the FPGA target when you click the Run button in an FPGA VI if the FPGA target supports interactive front panel communication. LabVIEW does not download the FPGA VI if the VI is already on the FPGA target or if the FPGA is reserved for other purposes.

You can force LabVIEW to download an FPGA VI by right-clicking the FPGA VI in the Project Explorer window and selecting Download from the shortcut menu. Refer to the specific FPGA target hardware documentation for information about downloading options available for the target.

You also can have LabVIEW programmatically download an FPGA VI or bitfile to an FPGA target from a host VI.

Complete the following steps to programmatically download an FPGA VI or bitfile.

  1. Open a reference to the FPGA VI or bitfile.
    Note   The FPGA target, FPGA VI, and host VI must be in the same LabVIEW project if you want to open a reference to an FPGA VI. The host VI does not need to be in a project if you open a reference to a bitfile.
  2. Add an Invoke Method function to the block diagram.
  3. Wire the FPGA VI Reference Out parameter of the Open FPGA VI Reference function to the FPGA VI Reference In parameter of the Invoke Method function.
  4. Right-click the Invoke Method function and select Method»Download from the shortcut menu.

If you programmatically download the FPGA VI to the FPGA target with the Invoke Method function, you also must programmatically run the FPGA VI on the FPGA target with the Invoke Method function. Add another Invoke Method function to the block diagram and select Method»Run from the shortcut menu of the Invoke Method function to programmatically run an FPGA VI or bitfile.