Is There a Limit to the Number of Bytes I Can Write Using UDP Write.vi?

Updated Mar 15, 2018

Reported In

Software

  • LabVIEW

Other

   

Issue Details

Is there a limit to the number of bytes I can write using UDP Write.vi?

Solution

UDP data packets are limited to 65535 bytes. Because this includes headers prepended by the UDP driver, the size of the user data is limited to 65507 bytes. You will receive error 113 from UDP Write.vi if you exceed this limit.
If you need to broadcast more than 65507 bytes, you must manually partition the data and send each piece separately. Note that because UDP does not guarantee order or arrival, you should also include information in each packet that allows the data to be reconstructed properly by the recipient.
National Instruments recommends using TCP as an alternative in this situation.
Follow the related link below for more information on using UDP in LabVIEW.

WAS THIS ARTICLE HELPFUL?

Not Helpful