LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I prompt the user to select a file?

Hello,

 

I am looking for a way to prompt the user to select a file. For instance, in my program, I want to ask the user whether or not they want to overwrite a file, or save a new copy. If these choose to save a new copy, I want to prompt the user to select the location and name of the new copy.

 

This works by default with the "Write to spreadsheet File.vi". If you leave the file path of the connector pane unwired, LabVIEW will automatically prompt the user to specify the file path. How is this done programatically? Thanks!

0 Kudos
Message 1 of 4
(25,420 Views)
Just use the File Dialog function (File I/O>Advanced File Functions).
Message 2 of 4
(25,414 Views)

Thanks Dennis.

 

Here is some more information to help you Newbie. Here are the instructions on Selecting a File through a Dialog Box.

 

This help contains all the information you need to use this File Dialog Express VI. There is an example located at labview\examples\dll\sound\playsnd.llb where you can see how to configure this box.

 

Hope this helps!

Warm regards,
Karunya R
National Instruments
Applications Engineer
Message 3 of 4
(25,381 Views)
Thanks guys! I must have wired it incorreclty initially, but it works great now! Smiley Very Happy 
0 Kudos
Message 4 of 4
(25,367 Views)