LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding Other LabView Stand-Alone Applications On Same Computer

Is it possible for a LabView stand-alone executable to identify other
instances of LabView stand-alone executables on the same computer?

In our lab, we run one or more instances of the same application to
control one or more pieces of test equipment connected to the same
computer. Each instance is unique only by it's application path (C:\test1
and C:\test2, etc).
The reason I would like to know if other instances are
running is because in some occasions, both instances would share a common
resource (DAQ card or serial port, as an example). Once each instance
were aware of the other instances presence, I could setup a sharing
mechanims through some sort of inter-process communication (TCP/I
P
ports?).
I have identified other methods (build a "server" app, which doles out
access to the shared resource), (create an "instance" file in a
pre-defined location), but these seem sort of kludgey to me.

Any help would be appreciated.

Thanks,
Andy

--
Andy Steinbach
stei0113@tc.umn.edu
0 Kudos
Message 1 of 2
(2,632 Views)
TCP/IP is the priviledge method.
If you set the VI Servers of your apps to use a predefined range of ports,
say 3363-3373, one app can try to open TCP/IP ports in this range. If the
connection succeed, this means another app is running. Then you use the VI
Server to implement the sharing mechanism.

It can be the VI Server or any VI that you could create that listen to a
TCP/IP port to inter-process communication.

Regards,

Jean-Pierre Drolet


Andrew J Steinbach a écrit dans le message :
8mc0f5$ln0$1@laurel.tc.umn.edu...
> Is it possible for a LabView stand-alone executable to identify other
> instances of LabView stand-alone executables on the same computer?
>
> In our lab, we run one or more instances of the same application t
o
> control one or more pieces of test equipment connected to the same
> computer. Each instance is unique only by it's application path (C:\test1
> and C:\test2, etc).
> The reason I would like to know if other instances are
> running is because in some occasions, both instances would share a common
> resource (DAQ card or serial port, as an example). Once each instance
> were aware of the other instances presence, I could setup a sharing
> mechanims through some sort of inter-process communication (TCP/IP
> ports?).
> I have identified other methods (build a "server" app, which doles out
> access to the shared resource), (create an "instance" file in a
> pre-defined location), but these seem sort of kludgey to me.
>
> Any help would be appreciated.
>
> Thanks,
> Andy
>
> --
> Andy Steinbach
> stei0113@tc.umn.edu
0 Kudos
Message 2 of 2
(2,632 Views)