08-01-2024 12:41 PM
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
08-01-2024 01:17 PM - edited 08-01-2024 01:19 PM
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.
08-01-2024 01:24 PM
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.