Naming Conventions for Generated Files and Constants
- Updated2025-12-04
- 2 minute(s) read
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
- Single-byte alphanumeric characters and underscores in the names of FPGA VIs
- Labels of controls and indicators
- Names of FIFOs
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