07-27-2012 01:02 PM - edited 07-27-2012 01:03 PM
I can see the full broadcast in the UDP transmit function (IP set to FFFFFFFF) but I do not see how to send the same UDP packet to two or three multiple specified IP addresses.
Is that even possible?
Thanks
Solved! Go to Solution.
07-30-2012 11:08 AM - last edited on 11-06-2024 03:18 PM by Content Cleaner
Hi Pawel,
If I am understanding your question correctly, then yes it is possible and it is done using the UDP Multicast VI's. Here is a link to the help page on the UDP Multicast Open.vi.
Also, there are examples in LabVIEW example finder in the "labview»examples»comm»UDP" folder or you can find them by simply searching "UDP" in the LabVIEW example finder, the examples are "UDP Multicast Receiver.vi" and "UDP Multicast Sender.vi".
Best,
Jake B.
07-30-2012 11:23 AM
Multicast will work if the recipients are setup to listen for multicasts (e.g. if you write their code too or have other ways to configure ;)).
Alternatively, you could just use a FOR loop and sequentially send unicasts to an autoindexing array of a few IP addresses. What kind of data reates do you actually need? Is it just an occasional short message?
07-30-2012 11:32 AM
Hi
I need large amount of data thus Multiocast.
Would the Multicast work with other (non-LabVIEW) udp receivers operating in a normal unitcast mode? Or all the networking receivers needs to operate in Multicast mode?
thanks
07-30-2012 12:54 PM
@pawel wrote:
Would the Multicast work with other (non-LabVIEW) udp receivers operating in a normal unitcast mode? Or all the networking receivers needs to operate in Multicast mode?
Clients must join a multicast group in order for multicasting to work. This basically means you're telling the OS that you want to received traffic on a specific IP address (multicast groups are IP addresses in a specific range), and on a specific network interface.
07-30-2012 01:00 PM - edited 07-30-2012 01:00 PM
Thanks for the explanation.