Opening a Reference to an FPGA VI, Build Specification, or Bitfile (FPGA Interface)

LabVIEW 2018 FPGA Module Help


Edition Date: March 2018
Part Number: 371599P-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2015 FPGA Module Help
LabVIEW 2016 FPGA Module Help
LabVIEW 2017 FPGA Module Help
LabVIEW 2018 FPGA Module Help
LabVIEW 2019 FPGA Module Help

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, build specification, or bitfile that runs on the FPGA target. You can open a reference to any FPGA VI or build specification that is part of the same LabVIEW project as the host VI. You can open a reference to any bitfile inside or outside the project.

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.

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.

Opening a Reference to an FPGA VI or Build Specification

Complete the following steps to open a reference to an FPGA VI or build specification in a host VI. You can open a reference if the host VI, FPGA target, FPGA VI, and build specification are in the same project. You cannot open a reference to an FPGA VI or build specification 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. Add an Open FPGA VI Reference function to the block diagram.

  6. (Optional) 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 a build specification and other 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 add 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. If your application requires a reference to a bitfile at run time, wire an Open Dynamic Bitfile Reference function in place of the Open FPGA VI Reference function.

  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. Add an Open FPGA VI Reference function to the block diagram.

  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 add and wire a Close FPGA VI Reference function for every Open FPGA VI Reference function in a host VI.

WAS THIS ARTICLE HELPFUL?

Not Helpful