02-28-2012 05:16 AM
Is there a function (in CVI or SDK) that can be used to find if a network cable is unplugged, in a WinXP environment?
02-28-2012 05:36 AM
Hi,
I don't know about SDK functions, but is has been suggested here to use the ping command to check for connectivity (it's not identical to a plugged-in wire, I know)
02-28-2012 05:37 AM
Hi,
I think the best way is just to use the ping function from the internet lib....
02-28-2012 06:10 AM
I've already used the ping approach in other situations, but this doesn't satisfy me in this specific one.
For this reason I'm looking for a different function.
02-28-2012 09:51 AM
You could call ipconfig and parse the output.
02-28-2012 10:03 AM
@Mohan wrote:
You could call ipconfig and parse the output.
Output from ipconfig depends on the language of Operating Systems: you find English terms on English OS, Italian terms on Italian OS, and so on.
And so it's impossible to parse this output searching for connection status.