LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error running exe to write to exel file: Error 7 New file not found

Hello!I have this problem, i've looked everywhere and i still can't solve it. It would be great if anyone can help me.
I built an application that writes an array to a spreadsheet file. Everything works fine in Labview 7.1 , i can build the exe file, but when i try to run it it doesn't work (it doesn't do anything although in Labview works perfecty well)and i have this error:
<<Error 7 occurred at New File; Possible reason(s): LabVIEW:  File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS, and / on UNIX.>>
I've attached the vi file and the exe file.
Thank you
0 Kudos
Message 1 of 3
(5,405 Views)
You've made a very, very common mistake and one discussed in numerous postings. When running in development mode and using the Current VI's Path, the path to a VI would be something like c:\folder\example.vi. When built, it becomes c:\folder\app.exe\example.vi. An extra strip path is required. Look at this, this, and this.
0 Kudos
Message 2 of 3
(5,393 Views)
Hello!It's working;thank you very very much.
0 Kudos
Message 3 of 3
(5,384 Views)