Generating a C API from the LabVIEW Project Explorer Window
- Updated2025-12-04
- 1 minute(s) read
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:
- Right-click the FPGA VI and select Create Build Specification from the shortcut menu.
- 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.
- Right-click the compiled FPGA VI item and select Launch C API Generator from the shortcut menu.
- 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.
- 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.
- Optionally, you can change the prefix for the generated files and for the constants in the generated .h file.
- 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.