Could anyone help me in finding out the errors that UDP Write.vi may return. Does it return any error when there is congestion in the network or the data is lost?
UDP is a stateless protocol. It does not guarantee reliability or even the correct ordering of the packets. Thus, if you lose a packet you won't get an error. As far as congestion, I'm not sure what you are referring to. If you're referring to the amount of time it takes to get the packet, again, there's no guarantee of that, but since packets can be dropped you might actually get the rest of the data faster. You can read more on Wikipedia.
How about the eror returned by UDP. Is there any list that shows which VIs throw what types of error so that we can make a program to deal with those erros.
All of the UDP error codes are listed in the LabVIEW Help. Open up the LabVIEW Help, change to the "Index" tab, and enter "error codes" in the search box. Scroll down until you see UDP.