LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with File Dialog in LabVIEW 7.1

My application calls File Dialog (from Advanced File Function Pallete) in "existing directory" mode to let the user select a folder into which a bunch of data files are saved.
 
The problem is that the proper directory path is returned only about 90% of the time. Another 5% of the time, the call returns the parent directory of the one actually selected. The final 5% of the time, it returns C:\Program Files\National Instruments\MAX (?!?!). 
 
The problem only appears in this fairly involved application. The same sub-VI with File Dialog can run as the top-level VI without any issues.
 
Has anyone seen this behavior before? Is there a good alternative for directory selection?
 
Thanks!
 
Zador
0 Kudos
Message 1 of 5
(3,104 Views)
Do you put a start path for that dialog?
Benoit
Benoit Séguin
Software Designer
0 Kudos
Message 2 of 5
(3,085 Views)

I have tried it both ways by now with the same result. In the original implementation I use the previously selected folder as the starting pass for the next call.

Also, the File Dialog glitch may occur on the first call or on any subsequent call. No apparent system.

Too bad the thing doesn't have an error output.

Zador

0 Kudos
Message 3 of 5
(3,077 Views)
You're going to have to post an example where this behavior happens. I've never seen the file dialog function return an incorrect path. I have seen it used incorrectly. When you are browsing for a folder, if you highlight a folder and then click "Select Cur Dir", the folder you've highlighted does not get returned. You actually have to double click it to open it, or hit the "Open" button to go down into the folder. The function only returns the path to a folder that you are actually in - not one you point to in the browser.
0 Kudos
Message 4 of 5
(3,073 Views)
In my case the file dialog is a part of the UI of a fairly large application. When isolated, it always returns the correct path. So unfortunately the only way for me to provide an example would be to post the whole 9 yards here, which obviously I can't do.
 
I guess this concludes the discussion.
 
For the record, I have somewhat alleviated the problem by displaying another, 3-button, dialog that asks the user to confirm the selected path. Here's a picture. See, i't sending me to C:\Program Files\National Instruments\Max yet again.
 
Zador
0 Kudos
Message 5 of 5
(3,044 Views)