LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I embed bitmaps into a built (.exe) LabVIEW application?

I am trying to embedd bitmap images (icons) into the exe file of a built LabVIEW application. I tried it, and got them in a "data" folder. I want everything in the .exe file, you know, just like C/C++ or just about any other programming language.

If anyone has any tips, I would be grateful.

I know about embedding the images in the controls, but that is not my goal. I need images as files to be embedded, somehow, into the .exe. The reason is I am using the picture control to read the images, but they are static once they are read. If it is possible for the picture controls to somehow retrieve the images from some other source, that would work also.

Otherwise, if someone knows how to dynamicall
y embed bitmap or other images into buttons in an array, that would be useful as well.

Thanks
0 Kudos
Message 1 of 3
(2,834 Views)
> I am trying to embedd bitmap images (icons) into the exe file of a
> built LabVIEW application. I tried it, and got them in a "data"
> folder. I want everything in the .exe file, you know, just like C/C++
> or just about any other programming language.
>
> If anyone has any tips, I would be grateful.
>
> I know about embedding the images in the controls, but that is not my
> goal. I need images as files to be embedded, somehow, into the .exe.
> The reason is I am using the picture control to read the images, but
> they are static once they are read. If it is possible for the picture
> controls to somehow retrieve the images from some other source, that
> would work also.
>
> Otherwise, if someone knows how to dynamically embed bitmap or other
> images i
nto buttons in an array, that would be useful as well.
>


Actually, many C and C++ programs, like LV itself have folders of data
that aren't linked into their code. But, if that is what you are
looking for, one pretty easy way is to load the images into memory and
place them into a 2D array of data, a string etc. Make an array of
these and make the value default. At runtime, you can now skip the file
I/O, or you can write the data to a temporary on launch and read them
back whenever you like.

Greg McKaskle
0 Kudos
Message 2 of 3
(2,834 Views)
Labviewguru,

can't you just make an array of picture controls, read the images into it and save as default value in a VI?

If it is not useful, please be clearer as how and where you ultimately want to use the images in your application.


LabVIEW, C'est LabVIEW

Message 3 of 3
(2,834 Views)