LabVIEW Application Runs Immediately When Opened

Updated Aug 22, 2023

Reported In

Software

  • LabVIEW Application Builder Module
  • LabVIEW

Issue Details

  • The main VI in my executable runs automatically when opened. How do I avoid this?
  • How do I build a LabVIEW application so that the executable waits for the user to press the Run button rather that running automatically when opened?

Solution

By default, startup VIs run when they are opened but there is an option in LabVIEW to override the setting. To have a LabVIEW application that simply opens and waits for the end user to run it, follow the steps below.
  1. Right-click the executable within Build Specification and select Properties in the LabVIEW project.
  2. In the Build Specification Properties window, select Source Files Settings on the left side.
  3. Select the VI that is running automatically on startup from the Project Files list.
  4. Select the Customize VI Properties... button.
  5. Uncheck Run when opened
VI Properties
  1. Rebuild the executable.
  2. The executable will now wait for the user to press the Run button rather that running automatically when opened.