Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

How to measure the sending time via UDP?

I send some data from my target to my host via UDP. It is not so important that each package will be received by the host, but that it will be sent as fast as possible because it is used for a visual feedback. Therefore, I would like to find out, how fast the data is send? Especially, I am interested in if it becomes slower, when I use more than one port at a time. Is there any way to measure the sending time in LabView?

 

Thank you.

Best regards Lea

0 Kudos
Message 1 of 2
(3,209 Views)

Hi Lea,

 

there is no built-in way to do this in LabVIEW. The quickest thing I can think of to do is to send a periodic message that the other side will reply to as fast as it can. In that way you get the round-trip time. If this value gets bigger, then your communication is getting slower.

You could also use the "System Exec.vi" to send a ping to the other PC. In this forum there is an example of how to do that:

http://lavag.org/topic/1409-ping-with-labview/

 

Hope this helps,

Joseph Tagg

0 Kudos
Message 2 of 2
(3,201 Views)