From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-20-2009 08:36 AM
04-20-2009 08:39 AM
Completely ignoring issue surounding shared resources (same file. I/O devices, network connections etc.)
Just copy your exe to unique names and run them.
EG
App name = Test.exe
copy to new names
Test1.exe
Test2.exe
Ben
04-20-2009 09:30 AM
There is an INI setting:
allowmultipleinstances = TRUE
Ton
04-20-2009 09:33 AM
TonP wrote:There is an INI setting:
allowmultipleinstances = TRUE
Ton
The INI file setting is for running multiple instances of LabVIEW, not necessarily multiple instances of a LabVIEW run-time application, correct?
04-20-2009 10:13 AM
The linked wiki page suggests it also works for executables.
Ton
04-21-2009 08:17 AM
Do you need the multiple instances to communicate? If so, use the INI file settings and VI server to launch them into the same run time engine. These settings in your INI file may be of use.
server.tcp.enabled=true
hideRootWindow=true
server.tcp.port=nnnn
server.tcp.access="+localhost"
Make sure you use a unique port number. Launch your main VIs by first using Open Application Reference with the port in your INI file and "localhost" as the machine name. Then use this application reference to open your main VI using Open VI Reference. Run it using the Run method with Wait Until Done set to FALSE and Autodispose Ref set to TRUE. Make sure it has its front panel open before you close your launcher or the LabVIEW runtime engine will close (since you have the VI ref, you can do a slow poll on the execution state or front panel open/closed properties).
Be careful with shared VIs. Reentrancy and VI templates are your friends.