Specifying Custom LabVIEW Configuration INI Files At Runtime

Updated Mar 16, 2022

Reported In


  • LabVIEW

Issue Details

I would like to use custom LabVIEW INI configuration files when launching the development environment, rather than using or overwriting the global configuration files.  How can I specify my custom INI file at startup?


This can be achieved by launching LabVIEW from the command line using the -pref flag, and specifying the custom INI file.  For LabVIEW 2020 64-bit, use a command similar to the following from a Windows Command Prompt:

"C:\Program Files\National Instruments\LabVIEW 2020\LabVIEW.exe" -pref "C:\MyCustomConfig\labview.ini"

The flag for the INI file can point anywhere the user places it.  On Linux, a command similar to the following can be entered in a terminal emulator:

/usr/local/natinst/LabVIEW-2020-64/labview -pref /directory/labview.conf

Additional Information

The current user account needs to have the proper permissions to access the configuration file's location.  This is especially important on Linux in a multi-user environment.  If the currently logged in user does not have access to the configuration file, the command will silently fail and launch LabVIEW with the global configuration.