From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-01-2012 03:02 PM
I have a quad port NI PCIe-8235 that I'm using for UDP communication. We have the UUT which has 4 UDP ports and can enable/disable them on command. Ideally, I want to open a UDP connection and wait for any incomming traffic. Instead, some of the cards receive a Error 54.
After a lot of experimentation, I've noticed that if the card has been plugged in at any point, I don't get this error.
If I disable, then enable the network card while unplugged, I receive the error again.
If I plug the cable in, and unplug it, I don't receive the error on any UDP opens.
Normally, I would loop until I don't receive the error. However, this error also appear to detect wrong IP addresses, which I would consider a valid error.
My assumptions are:
I'm missing something blatantly stupid
or
These cards can get into a state that windows either forgets they're there, or doesn't allow connections. Hopefully I can circumvent.
or
Not allowing a connection is valid, and plugging/unplugging the cable tricks windows. Allowing me to cheat.
Solved! Go to Solution.
06-04-2012 08:33 AM
Well, I've verified that this happens on another network card (Realtek) and another machine (Win7).
I'm starting to think this had to do with how windows handles network cards.
06-04-2012 03:57 PM
It might also depend on whether you're set for DHCP or not; you might be losing the IP address because of that. But yeah, it sounds like more of a Windows+ethernet cards behavior.
06-05-2012 05:28 PM
I gave up on delving into windows behavior and just started looping until no error occured on UDP open.
Thanks for the help.