Custom Control Image Was Lost After Building an Executable in LabVIEW

Updated Dec 11, 2023

Reported In

Software

  • LabVIEW

Operating System

  • Windows

Issue Details

I use an image in my custom control in LabVIEW. It works fine in the LabVIEW Development environment, but when I create an executable for my application the image of the custom control disappears. The Operating System I create my application for is Windows.
LabVIEW Development EnvironmentExecutable
A picture containing text, monitor, screenshot  Description automatically generatedGraphical user interface, application  Description automatically generated
I tried to make the custom control "Strict Type Def." but it didn't work.

Solution

The resolution of the image that is used for creating a custom control can affect the control's behavior in its later usage. 
There is no need to use high-resolution images when creating a custom control. It is highly recommended to adjust the image resolution to its display size in the application. This helps to not use additional resources and helps to keep the application reliable and leverages the chance of unexpected behavior when creating the executable. 
Use low-resolution images or downgrade the image resolution before using it for creating a custom control for buttons.