User Tools

Site Tools


Sidebar

Imprint

code:dqmh:hse-application-template:executable

12 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

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.

You can provide specific locations for your application's <%appname%>_Config and <%appname%>_Data folders by adding to your application's executable .ini file.

Replace <%appname%> with your actual application name. For our Template Application, this would be TEMPLATE.

Absolute

  [HSE]
  configdir=C:\some\directory\<%appname%>_Config
  datadir=z:\another\drive\<%appname%>_Data

Relative Paths

You can also provide paths relative to the application directory:

  [HSE]
  configdir=a\relative\subdir\<%appname%>_Config
  datadir=<%appname%>_Data
code/dqmh/hse-application-template/executable.txt · Last modified: 2021/02/05 08:41 by joerg.hampel