@FLiu wrote:
Hello,
In labview, I have the program read and write csv files at a default data directory that I set up in tools/options/Paths. When I deploy an application, it does not seem to know where that path is, since I can not find any csv files generated. How do I make sure they use the same default data directory. Please see captured picture for detail.
Thanks
FLiu
I think it is not a good idea to change the default data directory. I just keep it default, so I know where my files can be found on any PC, and also know it is going to be the same directory using other applications programmed with the "Default Data Directory" function. If you want to save your file elsewhere, program it explicitely! The Default Data Directory should always give the usual path:
C:\Users\UserName\Documents\LabVIEW Data (it is a hidden directory by default).
Anyway, if you really need to change it, you can check the ini file next to your EXE, and set the following line in it:
"DefaultDataFileLocation= ... "
Edit: info from here: http://forums.ni.com/t5/LabVIEW/Custom-default-data-directory-path-reverts-to-Labview-default/m-p/36...
Edit2: so open the "Application.ini" next to your built EXE, and add the following line (i show my case, alter it as you need):
DefaultDataFileLocation=C:\Users\Andras\Documents\testfolder