LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file dialog

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

0 Kudos
Message 1 of 6
(2,650 Views)

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".

0 Kudos
Message 2 of 6
(2,646 Views)

Show us a simplified version of your code.

0 Kudos
Message 3 of 6
(2,639 Views)

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.

0 Kudos
Message 4 of 6
(2,636 Views)

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...

0 Kudos
Message 5 of 6
(2,628 Views)

You seem to have some misconceptions.

 

  • If you want to select a folder instead of a file, you should configure the express VI accordingly.
  • The start path is just that: the path that is the current location of the file dialog. The file dialog will still pop up.

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?

0 Kudos
Message 6 of 6
(2,623 Views)