Vision Image Display Shows Black Screen When Running LabVIEW Executable

Updated Apr 24, 2023

Reported In

Software

  • LabVIEW
  • Vision Development Module

Issue Details

I have developed a LabVIEW program for machine vision, and it works fine when I run it as a VI. However, when running it as an executable, vision image displays in the Front Panel get blacked out. 

When Running VI 
image.png
When Running LabVIEW Executable 
image.png

Solution

This behavior could occur when multiple versions of LabVIEW Runtime are installed on the computer, and the latest version of those is missing necessary components for the Vision Image Display. Try either of the following:
  • If you have the following folder in one of the old versions of the LabVIEW Runtime, where ---- is the version of LabVIEW Runtime installed, copy it to the latest version.  
C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\----\PlugInControls
 
So, for example, if you have LabVIEW Runtime 2019 and 2020, installed, and you can find the folder at C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2019\PlugInControls, copy it to C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2020
  • ​​​​​​​When building the executable, disallow newer versions of LabVIEW Runtime to run the program. Under Advanced in the EXE build settings, uncheck Allow future versions of the LabVIEW Runtime to run this application.
This issue could also occur if there is a software corruption in the support files used by the Image Display indicator. To fix it:
  1. Open NI Package Manager from the Start Menu.
  2. Go to the Installed tab.
  3. Search for and check the box next to the packages Vision Common Resources and Vision Development Module Runtime.
  4. Click Repair and continue through the prompts.