User Tools

Site Tools


code:dqmh:hse-application-template:executable

13 Executable

Location

The default location for a built .exe is in parallel to the source code, so both can access the configuration of the project.

For the template windows application project, the folder structure looks as follows:

  /TEMPLATE/
      TEMPLATE.exe
  /TEMPLATE_Config/
      Unit_MyUnit
      config.ini
  /TEMPLATE_Source/
      TEMPLATE.lvproj

Build Spec

The hse_application build spec of the template application project uses the following settings in order to build an executable:

Configuration for Executables

The HSE Application Template can be configured to use non-default locations for the config and the data folders. See Configuration - Alternative Paths for details.

LabVIEW allows specifying a customized .ini configuration file when building an executable. This .ini file will have the same name as the .exe file and will be copied into the same folder as the .exe. See the NI's knowledge base article on combining an .ini with an executable.

CLI Arguments

You can call the executable with CLI arguments, e.g.

  C:\>TEMPLATE.exe -- "one cli param" "another cli param"

To receive them in a module, use the Get CLI Arguments request of the UI-Manager.

code/dqmh/hse-application-template/executable.txt · Last modified: 2024/03/20 10:03 by joerg.hampel