LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert a string array to a 2-d array

I am trying to convert a string array from a shift register to a 2-d array so that I can save the array using write to speadsheet.vi.
Thanks for your help!!
0 Kudos
Message 1 of 5
(2,944 Views)
Use 2 "for" cycles with autoindexing so you will get in inner cycle only one element of string array. Use one of StringToNumber vi's and you will get 2-d array of numbers.
0 Kudos
Message 2 of 5
(2,944 Views)
Thank you for your reponse! I am still having trouble wiring up the for loops (one with in the other). I am not sure how to leads the 2-d sting into the loops.
0 Kudos
Message 3 of 5
(2,944 Views)
Hi Gorelick.

Everything is much easier. Just use string to number vi's where strin input will your 2-d string array. You will get 2-d numeric array.

P.S. For leading 2-d string into array connect its wire to "For" left edge. You will see small point on the edge, click on with right button and select "enable indexing".
0 Kudos
Message 4 of 5
(2,944 Views)
thanks a lot, I will give it a try!!
0 Kudos
Message 5 of 5
(2,944 Views)