nsafaces.blogg.se

Labview datasocket example
Labview datasocket example









The server listening at the destination port accepts your request for a connection and is informed of the local port to which to send data.

labview datasocket example

The operating system chooses this port and does not need to be known by you, but note that it is unique to this one connection. An example is on port 80: When your application attempts to connect to a port on another computer, the operating system first opens a local port on your computer through which to communicate. The basic mechanism behind TCP/IP communication is that a client, such as a VI in LabVIEW, specifies an IP address (or name) and port number to access. For example, on Windows, a VI might use the DataSocket functions, which would call various WinSock API functions that perform the necessary steps to communicate with the host using the TCP/IP protocol. Both LabVIEW and CVI access the same socket services (that is, the Winsock API in Windows) of the operating system they are running on to perform TCP-based communication.

labview datasocket example

Therefore, DataSocket, VI Server, and TCP calls ultimately communicate in the same way. SolutionDataSocket and VI Server technology are based on the TCP protocol.











Labview datasocket example