ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Table string to array

Solved!
Go to solution

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.

0 Kudos
Message 1 of 8
(4,123 Views)

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

0 Kudos
Message 2 of 8
(4,111 Views)

 

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.

Omar
0 Kudos
Message 3 of 8
(4,076 Views)

Hi Omar,

 

Thanks for your feedback. My LV version is 8.5.1. May i have the downgrade vi that you attached previously?

 

Thanks.

0 Kudos
Message 4 of 8
(4,047 Views)
Solution
Accepted by TanTan

Try this vi. Change text file path before running.

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 5 of 8
(4,027 Views)

Hi Gak,

 

Thanks! This is the exactly what i want. My problem is solved.

 

Thanks.

0 Kudos
Message 6 of 8
(4,022 Views)

KUDO?....Smiley Sad

Never mind...Good that we could help you.

Best of luck Smiley Wink

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 7 of 8
(4,014 Views)

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

Omar
0 Kudos
Message 8 of 8
(4,005 Views)