Selecting a File through a Dialog Box

Complete the following steps to have LabVIEW prompt the user to select a file in a dialog box.

  1. Select the File Dialog function on the Functions»File I/O»Advanced File Functions palette and place it on the block diagram.
  2. Right-click the select mode input and select Create»Constant from the shortcut menu. Use the Operating tool to select one of the constant values.
  3. Right-click the path output and select Create»Indicator from the shortcut menu. The path appears on the front panel.
  4. Run the VI. A dialog box appears according to the option you selected in step 2.

You also can select a file for reading and writing.