LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I include a BMP with the Application in LabView

I have a VI that I would like to build into an application (.EXE).  The VI has a Picture indicator, whose source is a BMP on my local hard drive.  Using "Read BMP File.vi" and a Path constant, it's relatively easy to read the BMP and display it in the indicator.  I know how to include the file with the distribution (Build App or DLL -> Installer Settings -> Files), but how does one determine the location of the file after users install the EXE? I tried using just the filename of the picture in the path constant, hoping it would look in it's current directory, but I received an error.  With the full path in the path constant, everything works just fine.
 
Thank you,
...jerry
0 Kudos
Message 1 of 2
(2,865 Views)
JerryR,

try the attached VI for relative paths. sure you have to build another path on your own then.

i hope this helps,
Norbert B.
- NI Germany

Edit: place LV-question in the LabVIEW-department of this board in the future please.

Message Edited by Norbert B on 08-18-2005 10:04 AM

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 2
(2,839 Views)