Forcing an FPGA VI to Download to an FPGA Target (FPGA Interface)
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 a download by right-clicking the FPGA VI in the Project Explorer window and selecting Download from the shortcut menu. FPGA target functionality varies depending on the specific target. Refer to the specific FPGA target hardware documentation for information about downloading options available for the target.
You also can programmatically force LabVIEW to download an FPGA VI or bitfile to an FPGA target from a host VI.
Complete the following steps to programmatically force an FPGA VI or bitfile to download.
- 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.
- Place an Invoke Method function on the block diagram.
- 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.
- 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. Place another Invoke Method function on the block diagram and select Method»Run from the shortcut menu of the Invoke Method function to programmatically run an FPGA VI or bitfile.