10-24-2011 07:54 PM
Hi
I am using "File Dialog" in my program. I have selected the start path as the user defined path so that user can select the folder to which the files are to be saved before running the program. But when the program executes it again pops up the dialog box asking to confirm the user entered path location by pressing OK/Cancel.
Is there any way to not show the dialog box again becuase it is redundant as the user already specifies the path of the folder before he runs the program.
Thanks,
Robin
10-24-2011 08:15 PM - edited 10-24-2011 08:16 PM
Did you look at the help for what "File Dialog" does?
It "displays a dialog box with which you can specify a path to a file or directory".
That's the function's entire purpose. Popping up a dialog box to get a file path. If you don't want that behavior in your program, don't use "File Dialog".
10-24-2011 08:49 PM
Show us a simplified version of your code.
10-24-2011 09:10 PM
It sounds like you didn't wire the path the user selected to the input of the file I/O functions. By default, they will prompt the user to specify the file.
10-24-2011 11:21 PM
here it is....
lets say I already selected the folder to which I want to save all the measured files (s2p) before running the program. But even while executing the dialog still pops up to confirm the path. I am sure there is a small logic to get rid of this but could not able figure it out.
appreciate if you can give any sort of an idea to nail it down...
10-24-2011 11:37 PM
You seem to have some misconceptions.
If you already have the desired final path, you should conditionally skip the file dialog, e.g. by placing it in a case structure.
In any case, your VI is probably not sufficient to really tell what you want. What else is in your VI?