Opening a Reference to an FPGA VI (FPGA Interface)

LabView FPGA Interface

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 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.

Opening a Reference to an FPGA VI

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.

  1. Create a new project or open an existing project.
  2. Add an FPGA target to the project or verify the FPGA target appears in the Project Explorer window.
  3. Create a new FPGA VI or verify the FPGA VI to which you want to open a reference appears in the Project Explorer window under the FPGA target.
  4. Create a new host VI or open an existing host VI in the project. The host VI must be under My Computer or an RT target in the Project Explorer window.
  5. Place an Open FPGA VI Reference function on the block diagram.

     Place  Find
  6. 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.
  7. (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.
  8. (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.

Opening a Reference to a Bitfile

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.

  1. 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.
  2. Place an Open FPGA VI Reference function on the block diagram.

     Place  Find
  3. Right-click the Open FPGA VI Reference function and select Configure Open FPGA VI Reference from the shortcut menu.
  4. Select the Bitfile option in the Configure Open FPGA VI Reference dialog box.
  5. Navigate to the bitfile you want to open on an FPGA target.
  6. (Optional) Use the Configure Open FPGA VI Reference dialog box to select additional options for opening the reference.
  7. 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.
  8. 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.