Jump to content

Multiple instances of build EXE


Recommended Posts

QUOTE (Omar Mussa @ Jul 18 2008, 02:49 PM)

Is it possible to launch multiple instances of an EXE built by LabVIEW App Builder?

I do it to test my tcpip communications, so I'd say yes. The same EXE copied in two separate directories can be launched at the same time and run separately as long as they are not using the same port or other potentially shared resource.

Link to comment

QUOTE (normandinf @ Jul 18 2008, 12:00 PM)

I do it to test my tcpip communications, so I'd say yes. The same EXE copied in two separate directories can be launched at the same time and run separately as long as they are not using the same port or other potentially shared resource.

Excellent method, and it works. I also realized I could just copy my EXE and rename it and it was good enough for me in this case and it allowed me to run in same folder.

Link to comment

QUOTE (crelf @ Jul 18 2008, 12:17 PM)

or use the "allowmultipleinstances=True" key in the ini file (the last option looks to be the best one, but I've never gotten it to work in a built exe)

Might be in an older version of LabVIEW? I have it working all the time with some of my exe's in LV8.* onwards.

Neville.

Link to comment

QUOTE (crelf @ Jul 18 2008, 12:17 PM)

I saw that page and somehow missed this:

QUOTE

[MyApp]

allowmultipleinstances = TRUE

I knew that worked for LabVIEW.ini but I forgot that it could be used in 'MyApp.ini'... :P

I'll try that later and see if it works for me.

Link to comment

QUOTE (Omar Mussa @ Jul 18 2008, 03:57 PM)

Yeah - it's easy to miss due to the title of the page.

QUOTE (Neville D @ Jul 18 2008, 03:37 PM)

Might be in an older version of LabVIEW? I have it working all the time with some of my exe's in LV8.* onwards.

Thanks for pointing that out - I just tried it again and it works great :thumbup:

Link to comment

If you put Allowmultipleinstances=true in your built exe's ini file IT WILL WORK

if you look at the soft front panels that NI makes for things like their DMMs, they use that exact same ini so that we can have multiple dmm panels open at a time.

So since NI does it why shouldn't we.

It's much more elegant than making copies of EXEs

Link to comment

QUOTE (Norm Kirchner @ Jul 18 2008, 10:57 PM)

If you put Allowmultipleinstances=true in your built exe's ini file IT WILL WORK

if you look at the soft front panels that NI makes for things like their DMMs, they use that exact same ini so that we can have multiple dmm panels open at a time.

So since NI does it why shouldn't we.

It's much more elegant than making copies of EXEs

Thanks! had exactly this problem for some users who run identical instruments on same computer, just with different GPIB address.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.