LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

UDP Write sends data twice

The attached vi's are modeled on the UDP Send/Receive example programs. The Receive vi is run first and sits there waiting for the Send vi to run.
The send vi reads an array and sends it out via UDP. I expected the receive vi to see the sequence in the array (repeated, if the iteration input counter is set). It basically works as expected, however, each element of the array is sent twice instead of once.
The 100 ms wait timer is not needed, but I added it to see if slowing things down helped. It did not.
Download All
0 Kudos
Message 1 of 3
(2,758 Views)
I ran your version of UDP Send and Receive. With the 'Number of Iterations' set to '1' in the sender, the correct data was received in the receiver ('aaaa','bbbb','cccc','dddd'). I did not see any elements that were repeated. If I set the 'Number of Iterations' to 2 or more, the correct number of each element in the array was received.

Chris_Mitchell
Product Development Engineer
Certified LabVIEW Architect

0 Kudos
Message 2 of 3
(2,758 Views)
The problem of the duplicated Ethernet messages has been solved. It turns out that there was not one, not two, but three Ethernet cards installed in the system--and two of them were enabled. Apparently, each of the two active cards received the transmissions. When one of the cards was disabled, the messages were only received once. One clue was that when the message was sent to a single IP, it was only received once. It was only when broadcasting to 256. 256. 256. 256 that the message was received twice.

Thank you for your help in solving this problem
0 Kudos
Message 3 of 3
(2,758 Views)