LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem reading/writing disk files with standalone application

Hi all
 
I've developed a VI which works fine when run through IDE. It is able to read / write the disk files just fine. However, when i build it as a standalone EXE, its working fine except being able to read / write the disk files. Please help in this regard, and suggest where the problem is and how can it be solved.
 
I'm using Windows XP and LabVIEW 6.0
 
Thanks a lot
0 Kudos
Message 1 of 5
(3,103 Views)
A common mistake that people make when first creating an exe is that they don't take into account that paths are slightly different afterward. If you use the Current VI's Path function in development mode, the path might be something like c:\folder\example.vi. When built, the path will be c:\folder\app.exe\example.vi. So, to get to the folder, you have to do an extra strip path. You should modify your VI to use the appplication property App.Kind. If it returns Run Time System, do the extra strip path with a case statement.
0 Kudos
Message 2 of 5
(3,093 Views)
Probably related to this other question the user posted.
0 Kudos
Message 3 of 5
(2,923 Views)

What sort of error do you get?

 

You ARE monitoring the ERROR output of the file functions, aren't you? 

 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 4 of 5
(2,905 Views)
Are you asking it related to this question? It has already been solved. Pls see the above post.
0 Kudos
Message 5 of 5
(2,895 Views)