LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

network connection name

Solved!
Go to solution

Hi

 

Is it possible to get the name of network connection icon(refer to the attached pic) through program based on ip address?

Pls let me know if there is a way.

 

Thank you.

0 Kudos
Message 1 of 7
(3,207 Views)

I think the .NET example VI located here will give you what you want...

 

http://decibel.ni.com/content/docs/DOC-1089

Message 2 of 7
(3,170 Views)
You should also be able to get this information by using System Exec and issuing the command "ipconfig /all" and then parse the output. Not sure which is better for Vista, though, which is what you seem to be running (and for this, my condolences Smiley Very Happy).
0 Kudos
Message 3 of 7
(3,156 Views)

I would guess, that info is stored in the registry. You can try searching for the name to find the keys.

 

Felix 

0 Kudos
Message 4 of 7
(3,146 Views)
Solution
Accepted by topic author rdtttttttttttttt

Here is a more comprehensive VI to get all named adapters, and the ip addresses assigned to each...

 

 

Message 5 of 7
(3,140 Views)

Hi guyz

 

Bravo! Bravo! I did not expect such an elegant solution. Thank u very much!

 

Btw, another question: How can I change IP of a certain IP using dotnet in Labview? 

0 Kudos
Message 6 of 7
(3,129 Views)

rdtttttttttttttt wrote:

Hi

 

Is it possible to get the name of network connection icon(refer to the attached pic) through program based on ip address?

Pls let me know if there is a way.

 

Thank you.


Another solution which does not invoke the entire .Net resource hog, would be posted in this thread.

 

Rolf Kalbermatter

Rolf Kalbermatter
My Blog
0 Kudos
Message 7 of 7
(3,116 Views)