LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Establishing connection between two systems using UDP Protocol

Iam establishing two way communication between two systems using UDP protocol.

Iam sending continuous data throudh UDP write in one system and Iam able to receive data through UDP read on other system.

sometimes the data reading is slow (data is slowly updating ) and sometimes data  is getting updated continuously.

0 Kudos
Message 1 of 4
(2,560 Views)
  • What is your meaning of "slow"? Can you give some typical numbers?
  • What is the data rate you are trying to maintain?
  • Are the two systems on the same subnet or continents apart?
  • How much other traffic is on the network?
  • Is the sending rate constant?
  • Is the slow updating due to packet loss or due to slow indicator updates?
  • Do you know what percentage of packets actually arrive at the other end? (Remember, UDP is connectionless and unreliable).
  • Can you show us some code?
0 Kudos
Message 2 of 4
(2,555 Views)

Posts: 19,583
 
Kudos
 

Re: Establishing connection between two systems using UDP Protocol


  • What is your meaning of "slow"? Can you give some typical numbers?
  • What is the data rate you are trying to maintain?
  • Are the two systems on the same subnet or continents apart?
  • How much other traffic is on the network?
  • Is the sending rate constant?
  • Is the slow updating due to packet loss or due to slow indicator updates?
  • Do you know what percentage of packets actually arrive at the other end? (Remember, UDP is connectionless and unreliable).
  • Can you show us some code?
 

>let us consider XY plane and my job is to show the cursor indications for series of some points like (2,0),(0,2),(-2,0),(0,-2) (forms like circle)  in both the systems(local & remote) using UDP protocols.

            But when the cursor indication shows 3rd point(say) in local system ,the cursor indication in remote system is somewhere in between 1st & 3rd points and after some time the indications are matching in  both the systems and circle shape is covered (which indicates all the points are received) .

 UDP read parameters are set to; max size : 1000 bytes

timeout: 500ms

>The two systems are in same subnet.

> There is no traffic on the network because only these two systems are connected.

>Sending rate is constant and there is no loss of packets, all the packets are arriving.

 

0 Kudos
Message 3 of 4
(2,532 Views)

Please show us some code. There is no way to really tell what you are doing by words only.

 

Have a look at some of the shipping examples. (UDP receiver.vi, UDP sender.vi)

0 Kudos
Message 4 of 4
(2,528 Views)