LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Error 7" LV 8.5

Solved!
Go to solution

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.

 

0 Kudos
Message 1 of 10
(3,185 Views)

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.Smiley Wink


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 10
(3,180 Views)

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 Cat Happy

 

0 Kudos
Message 3 of 10
(3,172 Views)
Solution
Accepted by topic author CalLabCat

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)?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 10
(3,165 Views)

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.

0 Kudos
Message 5 of 10
(3,161 Views)

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?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 10
(3,152 Views)

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!

 

0 Kudos
Message 7 of 10
(3,148 Views)

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

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 8 of 10
(3,125 Views)

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!

 

0 Kudos
Message 9 of 10
(3,116 Views)

Edit [no longer relevant]

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 10 of 10
(3,092 Views)