LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I send a command to run a program on a remote computer

I am trying to use the TCP vi's to send a command to a remote computer on our local area network, so that a program runs on that remote computer. How do I do this, if possible?
0 Kudos
Message 1 of 2
(3,074 Views)
Set one server VI on the remote computer to LISTEN (create listener / wait on listener) continuously for one port. When it receive something, READ the string and see if it is the one that you are expecting. On your computer, set a client VI, which first CONNECT (open connection) to the remote computer (using remote's IP and port number) and then it SENDs a string containing the command.

Hope it helps.

p.s.: Uppercase words name the Vis that you should use for this application.
0 Kudos
Message 2 of 2
(3,074 Views)