LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically creating a new config file in an application

My application automatically creates and/or modifies an .ini file to save key settings in the software. This works fine when running it within LabVIEW itself, but when I run the .exe application file created using LabVIEW 7.0's application builder, the software always uses the default settings I provided to the Read Key VI, rather than creating a new file. Why does this happen and how can this be avoided?
0 Kudos
Message 1 of 3
(2,499 Views)
It's probably because the path is wrong. If you are obtaining the path to the ini file relative to the current VI's, then you need to do another strip path. For example, a current VI's path might be c:\folder\example.vi but in a built app, it will be c:\folder\app.exe\example.vi. You can put a test into your VI to see if you are in development mode and if false, do an extra strip path.
0 Kudos
Message 2 of 3
(2,499 Views)
I checked where the software was trying to put the ini file and that was the problem. Thanks for your help.
0 Kudos
Message 3 of 3
(2,499 Views)