LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

mac address pda

Solved!
Go to solution
Hello,
 
Can I use Resolve Machine Alias.vi, to get the MAC Address of my Touch Panel?. If thats right, haw can I use it?.
I was tring to use it in my pc and in the TPC without any success.
 
Thank you,
 
Juanjo
0 Kudos
Message 1 of 6
(12,255 Views)

There is no easy way to get your Touch Panel MAC address from a LabVIEW 8.2/earlier built application. If you just need to know the address, you can simply launch the command prompt on your touch panel and type "ipconfig -all". The MAC address is also usually displayed in the Network Utility dialog.

If you need to do this programmatically from LabVIEW, then you have to call CreateProcess using a call library node. Pass "ipconfig" and "-all" as the input parameters, then parse the std out parameter for the MAC address.

Refer to this KB for an example:

http://digital.ni.com/public.nsf/allkb/03EBFA9BE4718CEE8625722F0009C396?OpenDocument

Regards,
miko
Message 2 of 6
(12,164 Views)

Hello,

I have proved the example and it worked. Now I`m traing to handle the output of the comand sending it to a file "ipconfig -all>\mac.txt". When I type it in the comand prompt window, it works, but when I pass the parameters to the vi is like passing "-all" only. I have attached a vi as an example.

Is there another way to do it without using a file, because you cant pass command line arguments to a pda application in Labview, am I right?

Than you Miko and sorry for my english.

0 Kudos
Message 3 of 6
(11,880 Views)

Sorry,

The VI...

0 Kudos
Message 4 of 6
(11,878 Views)

Hi Juanjo,

To capture the output of cmd, use "cmd" as the executable name and "/c ipconfig -all > \mac.txt" as the parameter. Replace "/c" with "/k" if you want to keep the cmd window open.

I created an example for you. Just open the attached mac.lvproj.

 

 

Message Edited by miko on 07-23-2007 10:28 AM

Regards,
miko
Message 5 of 6
(11,854 Views)
Solution
Accepted by topic author Juanjo339

Hi,

It worked.

Thank a lot.

Regads,

Juanjo

0 Kudos
Message 6 of 6
(11,840 Views)