07-19-2007 11:32 AM
Solved! Go to Solution.
07-20-2007 05:53 PM
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
07-23-2007 08:39 AM
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.
07-23-2007 08:46 AM
Sorry,
The VI...
07-23-2007 10:23 AM - edited 07-23-2007 10:23 AM
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
07-23-2007 11:06 AM
Hi,
It worked.
Thank a lot.
Regads,
Juanjo