01-21-2016 11:00 AM
I have a project file and all needed vi's and subvi's in the folder D:\work\LV14\test.
The LoadData.vi uses fileDialogExpress to read some data from D:\Data\2015\fileNNN.
After runnig the vi In development mode I want to open another vi and therfore use File - Open...
and the LabView Dialogbox shows to D:\Data\2015 instead of D:\work\LV14.
The same happens when I start wit "New Vi" and "Save"
It is an awkward job to click back to D:\work\LV14\...
Hope, someone can help me
best regards, Erwin
Solved! Go to Solution.
01-21-2016 11:43 AM
This is a feature of the OS (it remembers the last place you were when it last appeared) - if you use the File Dialog VI, you can specify the 'start path' so it will always open the dialog at the path you specify. I think you can do the same for file path controls on the block diagram as well.
01-21-2016 12:13 PM
I'm using the startpath in the application, thats not the problem. I want to to come back to my vi-Directory after the application is finished.
I tried to read the file constant "current VI's path" at the beginning of the programm and calling FileDialogExpress at the end of my programm with "current VI's path" as Startpath. It works, but it's awkward and not sufficient. Do you know another method?
01-21-2016 02:38 PM
You can put something like this at the end of your code.