08-25-2008 09:16 AM
08-25-2008 09:51 AM
08-25-2008
12:35 PM
- last edited on
11-06-2024
03:30 PM
by
Content Cleaner
You can specify the network address to listen for UDP datagrams on when you use UDP Open (LabVIEW 8.20 and later). This would require opening a reference for each network card. There was no way to do this before 8.20.
I believe LabVIEW will perform the UDP Write using the network card specified when opening the connection reference, but I am not positive. Maybe someone from NI can confirm this?
08-27-2008 08:07 AM
08-27-2008 08:56 AM
08-27-2008 09:25 AM
Phillip B,
It is true that specifying the address of the local network card in the UDP open will cause it to be used for the UDP Write as well. In practice this is only really useful when the cards are on different subnets and you are doing a UDP broadcast so the networking stack can't figure out on its own which card to use.
08-27-2008 10:31 AM
smercurio,
You're probably right about the interface. I tried power cycling a couple of times this morning and the gateway persisted! So now I don't know why the gateway changed that one time.
09-04-2008 08:15 AM
I've been trying to make UDP receive work in LabView 6.1 to no avail. I noticed from Philip's comment that there's no way to specify an IP address to listen on in the "UDP Open" function until version 8.20. Does anyone know if there's a way to specify this via Windows 2000 instead of LabView? I wonder how it's done prior to LabView 8.20. I can't imagine that this is something we just hook up and pray that the OS would assign the IP address we want. I see that my UDP Read currently listens on 0.0.0.0:port #. I can't figure out how to make it listen on "My ip address: My port." Upgrading to Labview 8.5 would be my very last resort since it would involve tremendous amount of work and risk. Thanks for any input and help.
09-04-2008 09:42 AM
CNJ,
What Philip was saying is that before 8.2 it was impossible to specify 1 particular interface to listen on. If the UDP Read is listening on 0.0.0.0 that means it will listen on ALL of your interfaces on the port that you specify.
If you aren't receiving any data, the fact that the UDP Read is listening on MORE interfaces than necessary is not likely to be the source of the problem.
Again- unless you need to listen on one interface and not the other, it won't be necessary to upgrade to 8.2.
09-04-2008 03:44 PM