08-01-2017 05:53 PM
Hello, I have a simple vi that uses relative addresses for supporting files (image and text files). The vi works fine but I don;t know how to create the exe file with the relative address links. Suggestions? Thanks
08-01-2017 06:06 PM - edited 08-01-2017 06:09 PM
On your build specifications, you will use the 2nd, 3rd, and 4th categories to include files in the right locations.
Under Source Files, find any files you need and set them to "Always Included". Under Destinations, make a new destination for each subfolder you need (the default support directory is \data). Under Source File Settings, you can pair up your files with the appropriate destinations.
08-01-2017 06:28 PM
Sorry but what are the 2nd, 3rd, and 4th categories?
08-01-2017 06:32 PM
I list them one-by-one: Source Files, Destinations, and Source File Settings.
08-01-2017 07:10 PM
Source files
Destination - in a folder called "files"
Source File Settings = "files"
08-01-2017 07:32 PM
This didn't work either. The exe file still cannot find the supporting files.
08-01-2017 08:09 PM
I cannot look at your code right now, but make sure you are using Application Folder for building paths to support files that will be outside of your executable.
08-01-2017 08:13 PM
@nonone01 wrote:
This didn't work either. The exe file still cannot find the supporting files.
Yes, like Crossrulz said, it's not that it didn't work, it's just that you probably aren't building a path to the place you think you are. Can you post a snippet of code that shows how you build the path to these files in LabVIEW?
08-02-2017 12:43 PM
08-02-2017 12:51 PM
Yes, as Crossrulz said you want to use "Application Directory", not "Current VIs Path". The Application Directory will be the location of your project (.lvproj) file in the development environment, and the location of your your executable (.exe) file in runtime. So when you build your paths and place your folders on disk, make sure your lvproj is in the same relative location to your supporting files as your exe.