Generating a C API from the LabVIEW Project Explorer Window

Complete the following steps to generate a C API for a compiled bitfile from the LabVIEW Project Explorer window:

  1. Right-click the FPGA VI and select Create Build Specification from the shortcut menu.
  2. Under Build Specifications, right-click the new build specification for the example FPGA VI, select Build, and wait for the build to complete.
    Note For versions of LabVIEW earlier than 2010, right-click the example FPGA VI. Then select Compile, and wait for the compilation to complete.
  3. Right-click the compiled FPGA VI item and select Launch C API Generator from the shortcut menu.
  4. On the FPGA Interface C API Generator dialog box that appears, ensure that the right compiled FPGA bitfile is selected. You can navigate to the right bitfile or type an absolute path to it.
  5. Select an output directory for the C API. If you do not select an output directory, the C API files will be created in the directory that contains the bitfile. You can browse to a directory or type an absolute path to it.
  6. Optionally, you can change the prefix for the generated files and for the constants in the generated .h file.
  7. If you are using LabWindows/CVI to develop your C application, place a check beside Exclude NiFpga.h/NiFpga.c. The FPGA Interface C API installs header and library files with LabWindows/CVI support.