LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Remote start of applications

Hi,
I'm developing testing systems with 4 PCs and I need to start a test sequence on each of the 4 PCs from my application with CVI on the master PC (one of the 4). Does anyone know how to do that?
Thanks a lot.
Ziq
0 Kudos
Message 1 of 4
(3,284 Views)
Hi,
the question is, do you want to do this by a program or is it also possible by a remote control program like VNC?
VNC is a remote control program which is free of charge and very reliable.

If you want to do this by a program, I propose to write a small application which can start other programs and install it on each of the PCs. With a second small application on your host PC you connect the host PC with the client PC over TCPIP. By sending a small command from your program on the host PC you can tell your programs on the client PCs to start the program. If you define several commands you can decide which program you want to start.
Finally you can also send a command string with the filepath and name to your client programs to tell them which program to start.

The connection between the PCs over TCPIP is not very difficult

greetings
Oliver
Message 2 of 4
(3,266 Views)
Hi Oliver,
 
Thank you for your prompt reply.
Yes, we want to remotely start our application from a program.
Actually, our 4 PCs share the same monitor/mouse/keyboard/label printer. I already have developed the small applications on the master and slaves sides which allow communications between the master and each of the 4
slaves once the applications start running on each PC. The thing is how to start the communication applications on the PCs other than the master. I can of course switch my monitor/kb/mouse to each PC and start the application but it seems not to be the best solution, especially in a production environment.
What we need is to remotely start an application from our master application. Ths application remotely started on a slave PC will take care of the communication between the slave and the master.
Thanks again.
 
Ziq
0 Kudos
Message 3 of 4
(3,255 Views)
Hi,
the idea was to start a small application with the computer. For example with the autostart function. This small program runs in the backround and listens to the TCPIP network. That means, the small application starts an TCP Server. When you want to start your main application you connect with your master pc as a TCP Client to that TCP Server and send him the command to start your application.
The small application will stay all the time in the backround and does nothing.

Steps:
1.Start the small application with the autostart of the pc
2.Start the TCP server
3.Listen to the network
4.If command arrives start the main application
5.stay in the backround until the PC is shut down

If you are using the "LaunchExecutableEx" command you will get a handle to your main application and you can quit the main application with this handle and the "TerminateExecutable" command whenever you want. So, you have the control over your application.

Greetings
Oliver

0 Kudos
Message 4 of 4
(3,251 Views)