LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Proper Resolve Machine Alias Usage

Hello,
 
I am writing a VI to retrieve the physical network address from the local machine running the VI.
 
I was told to use the Resolve Machine Alias.vi.
 
However, I receive input parameter errors when I run the VI.
I do not see any examples in the example finder and I am not sure how to resolve the error.
 
I am using the Open Application Reference VI to obtain a reference to pass to the Resolve Machine Alias VI.
 
I am able to get a list of addresses by using a property node on the Open Application Reference VI however,
this seems clugy and does not provide me with a means of finding link speed and duplex.
 
Any Advice?
Should I be using a different method all together?
 
Thank You,
 
forrestjon
 
 
 
 
0 Kudos
Message 1 of 5
(3,832 Views)
Hi forrestjon,
i don´t know the Resolve Machine Alias.vi, but if you mean the MAC adress and other information you can use the SystemExec.vi and parse the result.

Hope it helps.
Mike
0 Kudos
Message 2 of 5
(3,830 Views)
Hi forrestjon,

Is this what you are looking for?

oops, attached the wrong pic the first time Smiley Very Happy
Message Edited by lmtis on 06-10-2008 02:47 PM

Message Edited by lmtis on 06-10-2008 02:48 PM
Jim

LV 2020
0 Kudos
Message 3 of 5
(3,822 Views)

Hi Mike,

Thank you for your suggestion.

I tried using the system exec.VI and noticed it does contain the IP address.

However, the duplex mode and link speed are not present in the cmd /c "ipconfig /all" output.

Is there a way to obtain these parameters?

Also, I would like to make my VI OS independant.

I am able to obtain the IP Address using the Open Reference VI and parsing the TCPAccess property for the first array element.

I think this method will work on my MAC OSX machine as well.

Thank You,

forrestjon

 

0 Kudos
Message 4 of 5
(3,812 Views)

Hi Jim,

Thanks for your response.

Actually I am lookig for a way to access the network properties of the local computer.

I wat to read the IP address, Duplex Mode, and connection speed.

I tried using the VI you posted to strip off the IP Address from the TCPAccess property and it returned

all 0's seperated by dots.

I believe this is due to the "+" symbol proceeding the IP address in the IP Address string.

Do you know of a method for obtaining the IP Address, Duplex Mode, and connection Speed?

Thank You,

forrestjon

0 Kudos
Message 5 of 5
(3,796 Views)