Problem: For a project I am testing possible methods of data transfer between applications. Sparing the details, the three methods being tested are TCP, UDP and DLLs.
Approach: I designed a basic LV VI that passes packets of data to itself via the three methods. Packets are usually 64-bytes, and the test usually loops 1,000 to 20,000 times. Time is measured for further comparison of speed and accuracy.
Results: I have read that UDP is a faster protocol, often at the expense of accuracy. As others working on the project, I have found LV DLL functions to be very unstable, crashing LabVIEW all together. My concern is that the results show that TCP is about 5 times faster than UDP transfers! Which is only about half the speed of DLL transfers (i.e. DLL = 0.1ms per transfer, TCP = .2ms per transfer, UDP = 1.0ms per transfer)
Is this reasonable? Any ideas why these results contradict general expectations? Any ideas would be appreciated.
- Philip