The current tcp/ip testing api is problematic for testing ethernet connections. The behavior of the function set does not allow you to bind to an ip address unless the ethernet connection is active in windows. This means that a unit under test must be powered before binding to the connection as a host. Additionally, powering off the unit causes the host connection to be forced to completly cycle its startup (re-bind the listener and junk all the old connections, foricbly by polling because you cannot bind to the port when no connection is present.)
This behavior can be achieved in C program, but cannot be called by labview in a dll because all dlls exist in the same thread. Windows tcp function calls rely on the calling thread to determine the connection, which means if you need multiple connections it simply cannot work with dll calls.
Suggestion:
Implement TCP/IP function calls so that a listner connection can be bound to an IP address that does require an active etherenet port and that is persistent across plugging/unplugging.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has not received any kudos within a year after posting will be automatically declined.