File Not Found Error Message When Using Path Control In LabVIEW

Updated Dec 4, 2023

Reported In

Software

  • LabVIEW

Issue Details

I placed a file path control in the front panel to specify the name of a new file. When I click on the folder icon to specify the path and the file name, if the file does not exist yet (it should get created by the function following the control) it shows an error message: "File not found. Check the file name and try again." The error message should look similar to the following screenshot:
 
Error message

How can I specify the path for a new file using the browse to path option?

Solution

When you create a file path control, by default it expects the user to select an existing file. If you want to use this control to create the file you need to modify the selection mode by following these steps:
1. Right-click on the front panel object and select Browse Options... as follows:
 
Browse Options 1.png

2. Once you are able to see the Path Properties window go to the Selection Mode pane and select one of the following options: New or New or existing. The properties window should look similar to this:
 
Selection Mode.png

3. Click OK and click on the folder icon to browse to the expected path and specify the file name.