LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find if the network cable is unplugged?

Is there a function (in CVI or SDK) that can be used to find if a network cable is unplugged, in a WinXP environment?

 

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 6
(3,499 Views)

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)

0 Kudos
Message 2 of 6
(3,494 Views)

Hi,

 

I think the best way is just to use the ping function from the internet lib....

-----------------------------------------
Kobi Kalif
Software Engineer

0 Kudos
Message 3 of 6
(3,492 Views)

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.

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 4 of 6
(3,488 Views)

You could call ipconfig and parse the output.

 

 

0 Kudos
Message 5 of 6
(3,471 Views)

@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.

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 6 of 6
(3,467 Views)