The first possibility listed with error 7 is LabVIEW:  File not found.
Since you get this error with Open File, I'd say that's the reason.
You may have included all of your VIs but did you write your
application to take into account that relative paths are different in
a built application? For example, if you use Current VI's Path
function to load a text file that would be in the same folder as the
VI, in the development environment, the path would be something like
c:\folder\example.vi. In a built app, the path would be
c:\folder\app.exe\example.vi. So, in order to get to the folder you
want to open the file, you need to do an extra Strip Path. To make
your built app and development program work the same, put in a
property node of class Application and property Application.Kind. This
will return an enum of Development System, Run Time, etc. that you
connect to a case statement to do the extra Strip Path.

Reply via email to