LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending data to 2 UDP port at the same time

Hi,

I'm writing an application that writes data to 2 UDP port at a speed of 4 Mbit.
The first thing I do is open the 2 UDP (with the UPD open vi). Then I send the data with the UDP write vi. The problem is that I sometimes receive an error 55 message (The network operation is in progress) while sending the data to the udp ports. The program works with sending data to 1 UDP port. I only get the error55 while sending it to 2 ports. I'm sending the same data to 2 port using the UDP write vi 2 times in a row (just first send the package to the first UDP port and then send the package to the second UDP port with the error clusters connected to each other).

I checked the NI site and there they mentioned some sort of multicast
UDP vi but I could not find the vi.

Can somebody help me with this problem?

thank you,

kind regards,
Marino
0 Kudos
Message 1 of 2
(3,240 Views)
Do you "udp open" only once and then wire both "writes" to the same connection ID???

Instead, do two UDP open, one for each destination port, and use a different local port for each. According to my casual testing, this should solve your problem.

(see also attached image. If you are already doing this, please post your example.)

(Btw: Multicast is a matter of destination address, not port, and probably will not help you. UDP multicast is supported in LabVIEW 7)
0 Kudos
Message 2 of 2
(3,240 Views)