05-06-2013 10:34 AM
In Win 7, I am building a Labview project. Where should I store the user selected system specific configuration files for the app operation? Things like data directories, log file directories, etc
05-06-2013 10:49 AM - edited 05-06-2013 10:51 AM
If you mean your own build application
WHat I do in my projects is the following :
- LabVIEWs ini file in the same folder as exe
- Log files in directory logfiles next to exe
- other data files like settings, configuration etc in a datafolder next to the exe
If you mean with your source code
- create folders for every type of VI : globals, controls(typedef), subVI, FGLB, ...
- create a datafolder for your datafiles your using
- create logfolder for your logfiles
05-06-2013 10:52 AM
With WIn 7 though the default app (C:\Prog Files X86\My App) are write protected to the directories now. In order to write files to it I have to change permissions when I create the directories.
05-06-2013 11:02 AM
Whatfor do you want to store files? An application or your source code
05-06-2013 11:24 AM
variables that need to be stored to disk for later recall during program operation instead of maintaining globals of them
05-06-2013 11:34 AM
Use the "Get System Directory" VI to choose the most appropriate folder. For data which you only need until your program finishes, I'd use the "User Temporary" folder.
Mark Moss
Electrical Validation Engineer
GHSP
05-06-2013 11:44 AM
Thats a good one but I am more interested in storing things after the app is shut down so the user doesnt have to re-enter it every time he runs teh app. Things like where data directories are.
05-06-2013 12:08 PM
Use OpenG Variant Configuration file vis. Very handy.