LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

UDP Wirte shows no errors, but no data is transmitted

In my design I have three UDP ports, on a single NIC for specific types of messages, UDP Port 1 is used to establish connections between my application and another, UDP Port 2 is a command/response Port where commands are sent to me and I respond, and UDP Port 3 is a command/no-response port (i.e. I listen only on this port).  The process requires the establishment and closing of these connections multiple times over a period of time.  The issue I am running into is that after the first time through (connections establish, messages exchanged, connections closed with no errors), I can successfully (according to LabVIEW) open a connection on Port 1, I can successfully (according to LabVIEW) write data out on Port 1, but no data is actually transmitted over the wire.  LabVIEW is not producing any error codes.  The only way to make this work is to close and restart labview.  Any thoughts on what may be causing this problem?

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

Do the UDP examples that ship with LV work correctly? Can you post any code?

 

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 2 of 3
(2,163 Views)

First, show us your code. Secondly, there are no connections in UDP. It is basically a fire and forget protocol. Unlike TCP the open does not communicate with the destination machine. So it is possible to have a successful UDP open (you were able to create the UDP pipe on your end but the other side is not able to actually get the data. Your writes are successful because you did put the packet on the network. It obviously is not making it to the destination however this is a possible out come when using UDP. If you need to guarantee delivery of your data use TCP.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 3 of 3
(2,158 Views)