Opening a Reference to an FPGA VI (FPGA Interface)
You can communicate with FPGA VIs or bitfiles running on FPGA targets using host VIs. Host VIs can run on PCs or RT targets. Each host VI must open a reference to the FPGA VI or bitfile that runs on the FPGA target. You can open a reference to an FPGA VI in the same LabVIEW project as the host VI, or you can open a reference to a bitfile.
Note If you want to open references to different FPGA VIs or bitfiles on one target, open only one reference at a time, and close the reference before opening another. You can have more than one FPGA VI reference simultaneously open on a target, as long as all the references correspond to the same FPGA VI or bitfile on the same target.
Tip To make host VI development faster, keep the FPGA VI in memory.
Complete the following steps to open a reference to an FPGA VI in a host VI. You can open a reference to an FPGA VI if the host VI, the FPGA target, and the FPGA VI are in the same project. You cannot open a reference to an FPGA VI if you do not have the LabVIEW FPGA Module installed.
Drag the FPGA VI you want to open a reference to from the Project Explorer window to the Open FPGA VI Reference function. The FPGA VI icon appears in the Open FPGA VI Reference function. If the FPGA target in the project is associated with a physical target, the target name and resource appears under the Open FPGA VI Reference function.
(Optional) Right-click the Open FPGA VI Reference function and select Configure Open FPGA VI Reference from the shortcut menu to display the Configure Open FPGA VI Reference dialog box, which you can use to select options for opening the reference.
(Optional) Wire a control or constant to the resource name input on the Open FPGA VI Reference function to specify an FPGA target on which to run the FPGA VI.
Note You must place and wire a Close FPGA VI Reference function for every Open FPGA VI Reference function in a host VI.
Complete the following steps to open a reference to a bitfile in a host VI. The host VI does not need to be in a project.
Create a new host VI or open an existing host VI. If the host VI is in a project, the host VI must be under My Computer or an RT target in the Project Explorer window.
Right-click the Open FPGA VI Reference function and select Configure Open FPGA VI Reference from the shortcut menu.
Select the Bitfile option in the Configure Open FPGA VI Reference dialog box.
Navigate to the bitfile you want to open on an FPGA target.
(Optional) Use the Configure Open FPGA VI Reference dialog box to select additional options for opening the reference.
Click the OK button. The FPGA VI icon appears in the Open FPGA VI Reference function. A folder icon appears in the upper left corner of the Open FPGA VI Reference function to denote the bitfile.
Wire a control or constant to the resource name input on the Open FPGA VI Reference function to specify an FPGA target on which to run the FPGA VI.
Note You must place and wire a Close FPGA VI Reference function for every Open FPGA VI Reference function in a host VI.