LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

connecting to a data socket

If a machine opens a socket connection to me, how to I get data from it. I have the IP of the machine and the socket number. Do I just give the IP number to Data Socket Read and the listen for data?

Thanks
0 Kudos
Message 1 of 4
(3,969 Views)
Hi exo,
 
Which protocol are you using? 
Jennifer R.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 4
(3,943 Views)
Apparently, LV data sockets only work when connected to a Windows machine. So says ni tech support.
Let me know if you know differently.
0 Kudos
Message 3 of 4
(3,929 Views)
Hi Exo,

"You can only use DataSocket as a client on Linux, Solaris and Macintosh.  This means that from a non-Windows machine you can publish to and read from a DataSocket Server, but the server itself must be running on a Windows machine.  The DataSocket Server application is built on Windows-based ActiveX technology and so is only available for Windows environments."  This is from KnowledgeBase 29A9RA8V.

In the LabVIEW Example Finder >> Communicating with External Applications >> OLE for Process Control (OPC) >> open the Browse to OPC Item example.  The example will build the URL to the OPC server item if it is available on the network.  You can also see How Do I Use OPC in LabVIEW?  I hope this helps.
Message 4 of 4
(3,903 Views)