LabVIEW Executable Doesn't Run Automatically When Opened

Updated Mar 29, 2023

Reported In

Software

  • 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 behavior, reference "LabVIEW Application Runs Immediately When Opened."