LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to send String from labview on one pc to another labview pc via ethernet.

Hello, I was like some help and I dont really know where to start on how to setup such a connection. I would like to send a string I filled out in one text box of a LabVIEW VI and send that string via ethernet cable attached to another pc which has LabVIEW aswell and fill in its text box with the same text. Thanks

0 Kudos
Message 1 of 3
(246 Views)

Have a look at the examples that ship with LabVIEW. All you need are two program, one on each computer.

 

You need to decide on a protocol (TCP, UDP) and also need to deal with potential firewall issues. Does the sender need confirmation that the data has been received? Make sure to handle all possible exceptions, for example what should happen if the receiver is down? etc.

 

Should the string update on the other end as you type or be sent once complete?

 

As long as both computers are connected to the network, the physical connection (cable, WIFI, router, fiber, satellite, etc.) is irrelevant.

0 Kudos
Message 2 of 3
(235 Views)

In LabVIEW, go to Help->Find Examples.  This will open up the Example Finder.  In the directory tree in the middle, open up Networking->TCP & UDP->Simple TCP.lvproj.  The two VIs in that project will show you how to communicate over TCP/IP.  In the example, the Server is the sender of data while the Client is the receiver.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 3
(229 Views)