LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW - including image folder in executable

Solved!
Go to solution

Hello all,

 

The current LabVIEW directory I'm working on uses an image folder to load images of our products in the application. There is no real problem with the solution, it works fine. However, I don't like the fact that we'd send the software to clients with an images folder that they could access or even just see.

 

Here's what it looks like currently.

FrougeurPro_0-1625579344502.png

Is there a way to include this images folder in the executable or the installer of the project  so that it doesn't show by itself ? 

 

0 Kudos
Message 1 of 6
(2,021 Views)

Hi Frogeur,

 


@FrougeurPro wrote:

Is there a way to include this images folder in the executable or the installer of the project  so that it doesn't show by itself ? 


You could convert all the images into 2DPicture constants, and place them in a "collector" VI to access them...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(2,016 Views)

Thank you for your asnwer, I've looked up ways to create 2D picture constants and only found this video : https://www.youtube.com/watch?v=UPqL8otrMAo. However, it looks like a convoluted way to do it. I've looked around the VIs palette and only found the "2D image" VI which looks to be more about drawing shapes than stocking a picture. 

 

How would you create said picture constants ?

0 Kudos
Message 3 of 6
(1,898 Views)
Solution
Accepted by topic author FrougeurPro

Hi Frougeur,

 


@FrougeurPro wrote:

How would you create said picture constants ?


Like this:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 6
(1,893 Views)

Ok thanks, that's how it was done in the video but I thought there might be another way to do it. 

 

Thank you for your answer.

0 Kudos
Message 5 of 6
(1,888 Views)

Hi Frogeur,

 


@FrougeurPro wrote:

Ok thanks, that's how it was done in the video but I thought there might be another way to do it. 


Sure there are other ways.

You might employ VIScripting to create those constants from image file: this way you can create constants (and any other code) programmatically!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(1,883 Views)