08-14-2013 09:53 AM
I am receiving an "Error 7 occurred at Open File +.vi:Open File" while running a GUI.
Typically if I have a problem like this, it is because one of my hard drives has lost connection. This is not the case this time. We have not changed anything that we know of. I have tried reverting windows to a couple weeks back, but no change.
At the bottom of the error window, it states "NI-488: Nonexistent GPIB interface."
It seems like something simple, but we cannot figure it out with our limited LV knowledge.
Solved! Go to Solution.
08-14-2013 10:12 AM
Error 7 often occurs when you are trying to open a file that another application already has open. Close the file you will be fine.
08-14-2013 10:23 AM
Unfortunately I do not have any files open as far as I can tell. I have rebooted and restarted fresh to make sure nothing was going on in the background. Thank you though
08-14-2013 10:32 AM
Error code 7 is "File not found". Are you sure your file is where you told you code it would be? Are you trying to make a file in a non-existant folder (that one gets me all the time)?
08-14-2013 10:55 AM
I have not changed anything from when it was working a couple weeks ago, so I assume that the file is still there. But, that does seem to be the indication. Does LV code ever drop paths?
Concerning the second point: When I continue the code, it does place it in the correct folder.
08-14-2013 11:22 AM
I've seen error 7 if you try to read a file that you've just created. If it's still creating the file when you try to read it, you get a file not found. Could it be that you have to give it a little time to finish? Is it intermittent or a solid failure?
08-14-2013 11:30 AM
Bill, it is a solid failure. I will try to process old data and see if that works, maybe that can give me some clues.
The file is complete. I took the data yesterday. Thanks!
08-14-2013 03:13 PM
I've managed to create folders with the intended file name, that generates error 7, since the file doesn't exist.
Highlight execution and Retain values and probes are your friend, most probably you're using an erroneous path.
/Y
08-14-2013 04:34 PM
Needed to import a specific file from a different location for every serial number I test. For some reason this serial number (and subsequent file) were not in the folder.
Thanks for your help!
08-15-2013 09:02 AM - edited 08-15-2013 09:03 AM
Edit [no longer relevant]