LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't I create an executable with LV's application builder that allows multiple instances?

Why can't I create an executable with LV's application builder that allows multiple instances?
 
I've created a successful executable, but when I double-click on it a second time, the focus just jumps to the already open program.  Is there a way to allow for another instance of my program to open just like Word or Excel does?
 
Thanks,
Jeff
0 Kudos
Message 1 of 5
(3,106 Views)
Add allowmultipleinstances=true to the ini file of the executable and you should be fine.
Message 2 of 5
(3,100 Views)
I have the executable using my own custom *.ini file, not the LabVIEW generated default.  I still added your suggestion, but nothing different happened.  Is there a setting in the Application Builder wizard?
Message 3 of 5
(3,093 Views)

There is not a flag I know of in the app builder that will add that.  The only way I know of allowing multiple instances is to have the mentioned setting in the applications ini.

The ini should end up having at the least

[app name]

allowmultipleinstances=true

 

You should still be able to have your custom information in the ini.

Message 4 of 5
(3,083 Views)

It worked!  I had to add a new section.  My executable is titled "MA47.exe", so I added the following lines:

[MA47]
allowmultipleinstances=true

Thanks alot!

0 Kudos
Message 5 of 5
(3,075 Views)