This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

How Do I Set the Initial Path of My File Dialog Boxes In LabVIEW?

Updated Jan 10, 2019

Reported In

Software

  • LabVIEW Full
  • LabVIEW Base

Issue Details

I am developing a program in LabVIEW that uses file I/O, and I want the user to be able to select the file to use. If I leave the "file path" terminal unwired in any of the file I/O VIs, I get a dialog box. This is fine, but the dialog always points to the path that I most recently used. Is there a way to have the dialog pop up with the same start path every time I run the VI, rather than the path used in the previous run?

Solution

There is a VI in Functions Palette » File I/O » Advanced File Functions called "File Dialog." This VI calls a File Open dialog box without opening a file, and then passes out the complete path of the file selected by the user. This VI allows you to specify a start path for the dialog. You can insert it into your program, providing any initial start path, and wire the path output from the File Dialog VI into your main file I/O VIs, as shown below: