LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

What's different between TCP and datasocket?

I want to read data from other computer's buffer in the same local network. I don't know which one is more suitable for it. I have finished this project using DELPHI with clientsocket component before. So I want to realize it with datasocket firstly in CVI. But I found they are different. When I used clientsocket, I read the data buf from the defined port. Whether it can be realized with datasocket as the same way or I should use TCP? Thanks a lot for your help.
0 Kudos
Message 1 of 2
(2,836 Views)
Hello,
 
Datasocket is a protocol that is proprietary to National Instruments. As long as you are communicating only with other NI software such as LabVIEW or CVI Datasocket will be a reasonable option for your project.
 
Datatsocket is built on top of TCP and intended to be a higher level API and easier to use for the most common uses of NIs software. As this is an higher-level abstraction of TCP/IP there is less flexibility in the way the protocol is used compared to TCP/IP.
 
For the most part if you are using only NI software and would simply like to send data items between two applications Datasocket will work for your application. If you need more flexibility or need to communicate to third party applications you should consider using TCP/IP directly.
 
Scott Y
NI
Message 2 of 2
(2,795 Views)