LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file dialog express alters my home vi-Directory

Solved!
Go to solution

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

0 Kudos
Message 1 of 4
(2,825 Views)
Solution
Accepted by topic author hennighausen

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.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 4
(2,812 Views)

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?

 

0 Kudos
Message 3 of 4
(2,803 Views)

You can put something like this at the end of your code.

 

Open File.png

0 Kudos
Message 4 of 4
(2,753 Views)