LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error number 7 when LabView tries to open file

I get the following error when LabView tries to open a file -

" Error 7 occoured at Open File+.vi:Open File.
Possible reasons:
Labview: File not Found .
or
NI-488: Non-existent board.

Having searched through the archives here the error usually occurs when LabView cannot find the file. Well this time i know the file is there, i have even used the 'read from spreadsheet file' vi with the dialog box option to show LabView where the file is. When i copy just the open file code into another (blank) vi it runs correctly but in the middle of all my other code it kicks up this error. I ahve had the code working no problem before so this problem has just arose over the past week. Very frustrating.

Any help appreciat
ed
0 Kudos
Message 1 of 2
(2,876 Views)
Hi,

You need to check the full path that you are passing to the Open File+.vi. Make sure that if you are deriving the file from say the file constants such as the Current VI's Path, that if the VI is contained in a LLB, then this will be in the path name. eg ..\myLib.llb\myActualVI.vi. Therefore, you will have to strip out the llb. Similarly, if you have built an exe file, the pathname will contain the myEXE.exe.

Hope this provides some pointers. If not then post your VI, so others can help pin point your problem.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 2
(2,876 Views)