Why Doesn't My LabVIEW Executable Run Automatically When Opened?

Updated Aug 4, 2021

Reported In

Software

  • LabVIEW Base
  • LabVIEW Full
  • LabVIEW Professional
  • LabVIEW
  • LabVIEW Application Builder Module

Operating System

  • Windows

Issue Details

I have created an application using LabVIEW, and I want the application to start automatically when I open the .exe file. However, it does not start when opened and I have to manually start it with the run arrow. How can I get it to run automatically when I launch the executable?

Solution

This behavior is caused by one of two settings which are configured in the Application Properties for your application's build specification. These settings can be found on the below setting pages in Application Properties:
  1. Source File Settings
  2. Advanced
You can get to Application Properties by right clicking your executable in your LabVIEW project and selecting Properties. It will also pop up automatically when you create a new executable with Build Specifications » New » Application (EXE).

1. Source File Settin​gs
Within the Source File Settings tab, configure the following settings:
  • Confirm that the Inclusion Type of your main VI is set as Startup VI.
 
  • Open Customize VI Properties. You have the option here to either use the VI settings or override them. The following steps will override the VI settings and force it to always run when opened. Confirm that Run when opened is checked. Uncheck Allow debugging.

2. Advanced
Debugging can halt execution when an executable is launched. Make sure Enable debugging is unchecked.

Additional Information

If you are experiencing the opposite problem and do not want your executable to run when opened, reverse the settings explained above and consult this article.