Unless you specify a custom prefix, the FPGA Interface C API Generator names the generated .h file, the .lvbitx file, and the constants in the .h file based on the name of the FPGA VI from which the application bitfile was compiled.

Characters Permitted in File and Constant Names

The FPGA Interface C API Generator only uses the alphanumeric characters and the underscores of the FPGA VIs. Then the software uses this stripped VI name as the prefix for the C API that the software generates. The FPGA Interface C API Generator cannot properly process multi-byte characters such as those used in East Asian-locale Windows systems. The manufacturer recommends that you use only:
  • Single-byte alphanumeric characters and underscores in the names of FPGA VIs
  • Labels of controls and indicators
  • Names of FIFOs
Using only these characters allows the FPGA Interface C API Generator to create valid C/C++ identifiers. If your FPGA VI name contains multi-byte characters, specify a custom prefix before generating the C API.
Note You can use multi-byte characters in the captions of controls and indicators without affecting the generated C API.

Naming of Files and Constants

For example, if the original bitfile was compiled from an FPGA VI called My Temperature-Monitoring Application.vi, the generated .lvbitx the default name of the generated .lvbitx file is NiFpga_MyTemperatureMonitoringApplication.lvbitx.

The FPGA Interface C API Generator uses the following parameters to create the names of each constant in the .h file:

  • VI name or custom prefix
  • The data type
  • Label or name of each control, indicator
  • FIFO in the FPGA VI

Before using the label or name in the name of the constant, the FPGA Interface C API Generator removes all characters except alphanumeric characters and the underscores from:

  • The label of the control or indicator
  • Name of the FIFO

The following example is the name of a constant corresponding to a Boolean indicator called Max Temp Exceeded in the FPGA VI described above:

NiFpga_MyTemperatureMonitoringApplication_IndicatorBool_MaxTempExceeded