LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Supporting files outside .exe file

Solved!
Go to solution

I have a labview executable which uses some resources.Currently I'm using the resources by giving file path.It becomes a problem when uploaded the executable and support files in the Internet and accessed from there.It loads only exe file and misses resource file.

Is there any option to embed resource files inside executable ?

0 Kudos
Message 1 of 4
(2,892 Views)
Solution
Accepted by topic author jawadtld

If they are not LabVIEW VIs - e.g. documents, external code (dlls) then no, I don't think they can be included 'inside' the executable. In your build specification you can set them to 'always include' and then in the destinations page select where they end up (e.g. in the same directory as the .exe, in a support directory etc.).

 

If you use the 'application directory' VI in the File I/O palette - this will return the path to either the project if in the development environment or the folder of the executable in the runtime engine. This should allow you to specify the path that will work whether in the runtime engine or development system. You can use conditional disable structures or the App.Kind property to determine if the VI is running in the dev suite or the runtime engine.

 

Also, the paths will only work on the local (or network) file system - you can't specify an internet address - LabVIEW won't be able to download the files from the internet unless you program your application to do that.

 

You should put the executable (build specification output that includes the .exe and your supporting resources) in a .zip file if you are uploading to the internet or create an installer.


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 2 of 4
(2,856 Views)

Sounds to me like you need to build an installer that can then include the resources you need.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 4
(2,822 Views)

From Sam_Sharp's reply I have realized that labview will not download the support file from internet unless programmed to do that.I think my problem will be resolved if added a program to fetch support file from internet or network location and keep with executable.

I'm fairly new to labview and hence it will be highly appreciable if any one could help me out to understand how the programming for downloading could be done.

0 Kudos
Message 4 of 4
(2,789 Views)