LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

starting LabVIEW.exe with alternative INI file

Solved!
Go to solution

Is it possible to start LabVIEW with an alternative INI file?

 

Usually LabVIEW.exe takes the INI file which is in the same folder with the same name:
   "C:\Program Files (x86)\National Instruments\LabVIEW 2020\LabVIEW.exe" uses "C:\Program Files (x86)\National Instruments\LabVIEW 2020\LabVIEW.ini"

 

What I'd like to do is to give LabVIEW.exe another INI-File as command line parameter. E.g.

   "C:\Program Files (x86)\National Instruments\LabVIEW 2020\LabVIEW.exe" "C:\LVProjects\MyLV.ini"

If I do as described above LV opens with the standard ini and loads MyLV.ini in the notepad.

Maybe I need an additional command line parameter or maybe there is also a completly different way. Any hints are welcome.

 

Thank's you!

0 Kudos
Message 1 of 3
(465 Views)
Solution
Accepted by topic author Andi_S

You should include -pref

 

"c:\Program Files\National Instruments\LabVIEWxxxx\LabVIEW.exe" -pref "c:\MyProject\labview.ini"

 

See https://labviewwiki.org/wiki/Custom_LabVIEW_configuration_file 

 

 

Message 2 of 3
(447 Views)

It's working! - thank you !! 😀👍

0 Kudos
Message 3 of 3
(314 Views)