‎09-01-2009 09:25 AM
Is there a way to have a file dialog box start in a specific folder without using the File Dialog express VI? (I also don't want to use a system exec).
Thanks.
Solved! Go to Solution.
‎09-01-2009 09:27 AM
I think you are seeking for the "browse options" of the path controls (browse button).
hope this helps,
Norbert
‎09-01-2009 09:36 AM
‎09-01-2009 09:38 AM
‎09-01-2009 09:46 AM
Broken Arrow wrote:
[...]even if the user navigated off of that folder the last time they used it.
How does the user navigate if there is no tree or dialog at all? If you use the dialog, why are you not using the express dialog, which is infact the only dialog option left for browsing files except the path control?
Norbert
‎09-01-2009 09:50 AM - edited ‎09-01-2009 09:51 AM
Norbert B wrote:
How does the user navigate if there is no tree or dialog at all? If you use the dialog, why are you not using the express dialog, which is infact the only dialog option left for browsing files except the path control?
Some VI's (Read From Spreadsheet, e.g.) automatically open a dialog, if a path is not passed in.
‎09-01-2009 09:54 AM
elset191 wrote:
Norbert B wrote:
How does the user navigate if there is no tree or dialog at all? If you use the dialog, why are you not using the express dialog, which is infact the only dialog option left for browsing files except the path control?
Some VI's (Read From Spreadsheet, e.g.) automatically open a dialog, if a path is not passed in.
Exactly. In my case I was using the Open/Create/Replace File function which does the same.
Your picture shows what I don't want to do - it uses the express VI. I guess what I'm asking is, can it be done with native functions?
‎09-01-2009 10:01 AM
‎09-01-2009 10:07 AM - edited ‎09-01-2009 10:08 AM
I was refering to functions which support the desired feature. As you already encountered, the Open/Create/Replace File.vi does not support this.
The Express VI "File Dialog.vi" uses the same file dialog as used in the example "Write to Text File.vi". You can find the VI using the link in the help of Open/Create/Replace File.vi.
Please note that the context help of this File Dialog states that "LabVIEW no longer supports this function on the block diagram. National Instruments recommends you use the File Dialog Express VI instead."
I assume that this text is written due to being platform-independent. It still works under Windows, but i can think of future releases of LV not to support this feature anymore (as stated in the help).
And still, you did not answer why you don't want to use the express vi....
Norbert
‎09-01-2009 10:13 AM
Norbert B wrote:And still, you did not answer why you don't want to use the express vi....
Because it's an express VI.
Digging deeper into the VI, it actually calls a function. I wonder why LabVIEW doesn't supply this function on the palette?