LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Error 7 occurred at Open File +.vi:Open File" when opening a newly built application

Hello,
 
After successfully building a standalone application in LabView 7.1, I get this error when I try to run my .exe file.  I don't think any files are supposed to open upon execution except for my top level VI, which appears to open just fine, so I'm unsure why this error pops up.  Does anyone have any ideas that might help or has anyone run into this error before?
 
Thanks in advance!
 
Jason
0 Kudos
Message 1 of 4
(5,287 Views)
My guess is that you're probably building the path programmatically and you're using the "Current VI Path" in there somewhere. This is a common first-time mistake. A VI's path is different when run within an executable, as the executable's name is appended to the path.
0 Kudos
Message 2 of 4
(5,259 Views)
Hi,

I have a similar problem. I created a stand alone application using Labview 8.2.  I run a vi to test some electronics and send the results to an Excel spread sheet. I use Labview's New Report vi and I give the location of the spread sheet as one of its inputs. In runs OK on my laptop (windows XP) but when I make it a stand alone application and run it on another PC (Windows 2000)  I get an "error 7 at Excel_Open.vi" that shows an extra path in the directory.

See attached vi -- assuming it stays with this note.

How do I fix this?

Thanks

Ken M
🙂



0 Kudos
Message 3 of 4
(5,066 Views)
Do a message search on "report generation error".  I came across this link which sounds related to your problem, namely the report generation VI's have some internal dynamically linked VI's that need to be included in your build of the applicaiton.
0 Kudos
Message 4 of 4
(5,063 Views)