Generating a C API from a Windows Command Line

Use the following syntax to generate a C API for a compiled bitfile from a Windows command line:

capigen.exe "<absolute path to .lvbitx file>" ["<absolute path to output directory>" [<prefix override>]].

Note Note that the second and third arguments, the path to output directory and prefix override, are optional.

If you are using LabWindows/CVI to develop your C application, use the following syntax to exclude NiFpga.h and NiFpga.c. The FPGA Interface C API installs header and library files with LabWindows/CVI support:

capigen.exe -e "<absolute path to .lvbitx file>" ["<absolute path to output directory>" [<prefix override>]].