Chris Anderson wrote:
>
> I want to have LV access a file of data but I want this done so that when
> I use application builder and installer, it will know where to look for the
> file. Currently I have an absolute reference to the file c:/test/data for
> example. Is there a way to reference the file name relative to the folder
> where the executable is located?
Two ways to do this.
1. Use "Current VI's path" and "Strip Path" to strip off two elements. This
will leave you with the folder that contains the EXE. Note this will return a
different path when used in the development environment.
2. In LV 5.x, use an Application Property node to return the
Application:Directory. In an EXE, it will return the folder that contains the
EXE. In the development environmen
t, it will return the folder that contains
the LabVIEW EXE.
In the Property node, there is also Application:Kind to determine if you are in
development or a built app.
Regards,
Brian Renken
http://Brian.Renken.com/LabVIEW