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.
- Select the File Dialog function on the Functions»File I/O»Advanced File Functions palette and place it on the block diagram.
- 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.
- Right-click the path output and select Create»Indicator from the shortcut menu. The path appears on the front panel.
- 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.