LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File to be created must already exist

Solved!
Go to solution

The problem I am struggling with is that when creating an Excel file, the user is prompted for the file name. They can browse for the file by clicking on the folder icon, but once they get to the directory they want, if they type in a file that does not exist, LabVIEW says that the file cannot be found. So the user has to click on a file that already exists and then change just the very end of the filename to what they want, which is more work than I want the user to do. Any suggestions?

 

Thanks,

gj

0 Kudos
Message 1 of 6
(3,169 Views)

Is it possible for you to post a version of your code that isolates the issue you are trying to explain?

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 6
(3,164 Views)
Solution
Accepted by topic author gjacob

Check in the options for whatever function you are using to pop open the file dialog box.  I bet you have it set for existing files only when it should be set for new or existing files.

 

If it is a file I/O path control, right click on the browse button and pick properties.

0 Kudos
Message 3 of 6
(3,155 Views)

While looking at which part of my code to post, I right clicked on the file path control. Under the selection mode you can choose "existing" "new" or "new or existing". Obviously mine was set to "existing" only, so that was my problem 🙂

0 Kudos
Message 4 of 6
(3,154 Views)

Bah, now it looks like I didn't figure it out on my own! Thanks RavensFan! You did get your post up before me though, so I will mark it as the solution 😛

0 Kudos
Message 5 of 6
(3,152 Views)

🙂 Sorry for not asking that, I had assumed the problem was more complicated. My fault for not thinking about the basics!

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 6 of 6
(3,139 Views)