LabVIEW Executable Opens Endlessly When Used as Default Program

Updated Nov 20, 2023

Reported In

Software

  • LabVIEW
  • LabVIEW Runtime

Operating System

  • Windows

Issue Details

After setting my LabVIEW application as the Default Program in Windows for a certain file extension and opening a file with that extension, new instances of the LabVIEW application will constantly open, hoarding the computer's resources.

I want users to be able to double click a file with a certain extension and have my LabVIEW application launch and take the opened file as an argument for processing using the VIs I developed.

Solution

This behavior can be seen when the application allows for multiple instances to run simultaneously. To solve this, consider the following scenarios:


Multiple instances of the application are not needed

Opening multiple instances of a LabVIEW executable is not the default behavior, so it is likely it was intentionally enabled for the problematic application. If this is not a requirement make sure to disable the multiple instances parameter of the executable, by setting a False value in the allowmultipleinstances property. You can refer to the article Run Multiple Instances of a LabVIEW Executable Simultaneously, for details on how to modify this property.
 

Multiple instances of the application is the desired behavior

Make sure to enable the Pass all command line arguments to application option in the Advanced tab of the build specification. This will prevent the application to open endless instances, it will just open one instance per file you open.

advancedsettings.png
 

Additional Information

If you get into the endless instances behavior, you can right-click the file you opened, select General>>Properties>>Change and select another program that is not enabled for multiple instances to stop more instances from opening.
 
changeproperties.png