LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

UDP sending 2048bytes on Network

Hi, I am using LabVIEW 6i. I am trying to send 2048bytes of data to another PC in the Network using UDP. And I have modified the example programs given with LabVIEW i.e.
UDP_Sender.vi and UDP_Receiver.vi etc to send and receive 2048bytes but it is not getting any data. I heard that there may be chances of losing data in UDP but here it is not
getting any of the data at all.
 
Here with I have attached both the VIs. I tried to send data in sender vi with 1ms wait in loop. And tried to receive 10ms wait and 10ms of timeout on receiver even than it is not getting any data. I tried 1ms on both the side but not succeeded.
 
Here we want to find out, what is the maximum data LabVIEW can send to other PC using UDP and practically how much time require to receive sent data.
 
Is there anybody who can guige me please? Anybody know anyway to do this thing!
 
 
Download All
0 Kudos
Message 1 of 3
(2,430 Views)
The first thing to do is just verify that the software works on the localhost (there is no typo there. use localhost).
 
Then one thing comes to mind immediately... do you have a firewall or an intelligent hub / router in the path?
If you do, the problem is likely there.
 
Normally this should clear up any issues.
0 Kudos
Message 2 of 3
(2,408 Views)
Though it sounds like you might have already been warned, let me reiterate: Unless you are going to create a protocol yourself that addresses UDP's short coming, sending data using UDP is a very, very bad idea. This protocol is very fast but the reason for its speed is that it implements NO error correction or any sort of data verification. For example, if a packet comes up missing you'll never know it. If packets come out of order due to varied routing paths, you'll never know it. If a packet is corrupted, you'll never know it.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 3
(2,386 Views)