LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to open a file by double clicking in an RUNNING exe built by LabVIEW

Solved!
Go to solution

I am developing an applicationg using LabVIEW. But found some difficulties.
This is an editor, and I link this app to a certain file format.
So I hope when I double click this file, My exe will load it. This could be done by read application command line.
But if my exe is runing already, I double click the file, I could not get the latest command line information.

When the exe is running, How doule click the file to send some sort of info the this exe so the exe could open a new one.
How to do this in LabIVEW?

Smiley Frustrated

0 Kudos
Message 1 of 4
(2,579 Views)
Solution
Accepted by topic author brucexliu

If you use Application Builder to create your .exe and want to run multiple instances of the .exe you can add AllowMultipleInstances=TRUE to .ini file in the same directory as the .exe file.

 

//Erik

Message 2 of 4
(2,564 Views)

Yes,

I've tried this, but is there any thing to notice if using this AllowMultipleInstances=True ?

Because if I turn it to True and run multiple Applications, one of them will crash.

0 Kudos
Message 3 of 4
(2,530 Views)

Hi,

 

You have to make the Vi reentrant so that it does not share the same memory location:

Reentrant.PNG

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
Message 4 of 4
(2,520 Views)