02-10-2011 04:10 AM
Hi,
I need to print out a specify device mac addres.
I got the mac address in table form by command prompt as attached file, but there are more than one mac address listed out.
The only mac address number i want to use, is the 4th mac address 00-04-A3-12-32-25.
May i know how to get this 00-04-A3-12-32-25 mac address from the whole table string and list it in array?
Appreciated your advice.
Thanks.
Solved! Go to Solution.
02-10-2011 06:05 AM - edited 02-10-2011 06:06 AM
Hi TanTan,
the part after "system exec.vi" shown in this bd will work for you to ge a 2d array of your data.
Mike
02-10-2011 02:12 PM
Here is a VI I use to get strings out of a table that has a header with seperator line ( ======== )
Feed your string into the String In. Feed the Seperator Char (in your case the 😃 and it will break out the table into an array that you can index to get what you want.
02-10-2011 08:01 PM
Hi Omar,
Thanks for your feedback. My LV version is 8.5.1. May i have the downgrade vi that you attached previously?
Thanks.
02-11-2011 02:16 AM
Try this vi. Change text file path before running.
02-11-2011 02:56 AM
Hi Gak,
Thanks! This is the exactly what i want. My problem is solved.
Thanks.
02-11-2011 04:42 AM
KUDO?....
Never mind...Good that we could help you.
Best of luck
02-11-2011 08:35 AM
This is the VI that I use to do the very same thing of pulling MAC addresses out of a table.
But I don't read a file, but read the table via RS232 from a network switch.
The VI in 8.5