´╗┐
Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Compiling, Downloading, and Running FPGA VIs (FPGA Module)

LabVIEW 2013 FPGA Module Help

Edition Date: June 2013

Part Number: 371599J-01

»View Product Info

You must compile an FPGA VI into a bitfile before you can download and run the FPGA VI on an FPGA target. The following sections outline the build process.

Creating an FPGA VI Build Specification

You must create a build specification to compile an FPGA VI into a bitfile for the FPGA. Build specifications give the compiler instructions on how to create the bitfile.

Complete the following steps to create a build specification through the Project Explorer window.

  1. Right-click Build Specifications in the Project Explorer window and select New┬╗Compilation from the shortcut menu to display the Compilation Properties dialog box. You also can right-click an existing build specification in the Project Explorer window and select Properties from the shortcut menu to display this dialog box.
  2. Specify the build specification name and other descriptive information on the Information page of the dialog box.
  3. Display the Source Files page to specify the top-level VI. FPGA VIs can have only one top-level VI.
  4. If available for your FPGA target, configure the Xilinx build options on the Xilinx Options page.
  5. Click the OK button to close the dialog box or click the Build button to begin compiling the FPGA VI.

Compiling an FPGA VI

To compile an FPGA VI, you must configure the FPGA target to execute FPGA VIs on the target. Right-click the target and select Execute VI on»FPGA Target from the shortcut menu. You cannot compile an FPGA VI when you run the VI on a development computer.

You can compile FPGA VIs in the following ways:

  • Click the Run button to compile the FPGA VI. If the FPGA target you use supports interactive front panel communication, LabVIEW automatically runs the FPGA VI on the FPGA target. Clicking the Run button compiles the VI only if the VI or project has changed since you last compiled the VI.
  • Right-click an FPGA build specification in the Project Explorer window and select Build or Rebuild from the build specification shortcut menu.

The compilation process goes through several stages. Compiling FPGA VIs can take from a few minutes to a few hours. National Instruments recommends testing and debugging an FPGA VI before you compile it.

Downloading a Compiled FPGA VI

After you compile the FPGA VI, you can download and run the FPGA VI on the FPGA target.

Note Note  You can download and run only one FPGA VI at a time on a single FPGA target. If you attempt to download a second VI to the FPGA target while the first FPGA VI is still in use, LabVIEW reports an error and the download fails.

You can download the compiled VI in the following ways.

  • Right-click a compilation build specification in the Project Explorer window and select Download from the shortcut menu to download the FPGA VI.
  • Programmatically force the FPGA VI to download using FPGA interface functions.
  • If the target supports interactive front panel communication, click the Run button on an FPGA VI. If the FPGA VI is new or has changed, the FPGA VI will compile and download to the FPGA target automatically after the compilation completes. However, LabVIEW does not download the FPGA VI if the VI is already on the FPGA target.
  • Store the FPGA VI in flash memory if the target supports flash memory.

Running a Compiled FPGA VI

You can run the FPGA VI in the following ways.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit