LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to send 32 packet within 15ms through UDP

Hi all,

 

        I need to send 32 packet within 15ms through UDP in labview 2012. Each packet carries 2560 bytes. If it can able to send all packet within 7 or 8 ms, then it should wait upto 15ms and again it should repeat the same.

 

Please, anyone help me.

 

My code is as below.

 

Thanks,

 

0 Kudos
Message 1 of 16
(3,331 Views)

I assume you know that UDP is fast but not necessarily "reliable", while TCP/IP is reliable, but may be slower.  Still, your bandwidth should fall within TCP/IP's speed, I think.  NI has a lot more options if you choose the higher-level protocols, which may make your programming life easier.

 

BS

0 Kudos
Message 2 of 16
(3,295 Views)

Is this across the internet or on the local network? Do you care if all packets are actually received at the other end?

0 Kudos
Message 3 of 16
(3,285 Views)
0 Kudos
Message 4 of 16
(3,264 Views)

 

Is this across the internet or on the local network? Do you care if all packets are actually received at the other end?

 


This is across the local network only. Yes Mr.albenbach, all packets should receive the other end.

0 Kudos
Message 5 of 16
(3,233 Views)

@Rock.cse wrote:

This is across the local network only. Yes Mr.albenbach, all packets should receive the other end.


As has been discussed ad infinitum already, then you cannot use UDP. Simple as that!

 

(In the same way, you cannot use a tricycle to fly to the moon, no matter how hard you try. Why do you refuse to listen to reason?)

 

0 Kudos
Message 6 of 16
(3,220 Views)

Sorry Mr.altenbach. I discussed this topic with my senior. He only told me that you can send this in labview. Thats why, i am trying to achieve it till now. Any way, thanks for your information.

0 Kudos
Message 7 of 16
(3,216 Views)

Then your senior is wrong.  You can tell him directly I said so and if he wishes to discuss the matter, he can create a NI forum user account and we can discuss the technicalities why this is so.

Message 8 of 16
(3,207 Views)

I wouldn't go that far, Shane.

I think that there is some confusion/misunderstand around this topic.

 

YES, you can use LV to send data using UDP and TCP to other systems.

NO, UDP by itself does not ensure lossless data transfer. So UDP can lose packets. That is something which LV cannot influence by any means. TCP is a lossless protocol which should be used if you require the security.

NO, neither TCP nor UDP are deterministic. So even if the packages you are sending are sent within a time x ms, there is no one garantee of any means that this happens EVERY time. Sometime packages might take a multiple of this time.

NO, transfer times are not influenced by the sending PC at a primary level. It all depends on your network; if the network sucks, using UDP packages are lost. If using TCP, packages are resent, so it also depends on sender and receiver alike.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 9 of 16
(3,198 Views)

Norbert, I'd like to know how to get deterministic lossless transmission with UDP.

 

Does NI know something I don't?  DEspite advice to the contrary (Like using TCP instead) the OP insists that doing this with UDP is possible.  While it may work at times, the inability to correct for lost packets rules out UDP as a protocoll unless the user wishes to implement his own error correction (Which will almost certainly slow things down more than a switch to TCP would).

 

If his senior claims this is possible, I'd like to discuss the matter with him directly because maybe he knows something I don't.

0 Kudos
Message 10 of 16
(3,191 Views)