LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do a client connect to a system on which a vi is running (using datasocket)(in labview)

let the publisher vi have an IP address X (it is also running a
datasocket server) can a client connect to that system through
internet. If so how.Anyone kindly take some time to answer this
question. thank u a lot.
0 Kudos
Message 1 of 3
(2,578 Views)
Both computer must use the same port for datasocket communication, it also depends on whether the computer is behind a firewall or not, if it is, the port must be forwarded. There is an example VI that shows how to connect to NI's temperature monitor through the internet. I couldn't remember the name of it though.

Joe
Message 2 of 3
(2,578 Views)

Hello,
Here is a technical overview about datasocket that may help. If you need to open a port on your firewall, here is a document on what ports are used by NI products. Lastly, the example Joe was describing is called DS Weather.VI, which is packaged along with several other examples found in the Example Finder. Just search for "datasocket".

Hope this helps! Let me know if you have any other questions. Thanks!

Jeremy L
National Instruments

Jeremy L.
National Instruments
0 Kudos
Message 3 of 3
(2,578 Views)