LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there an easy way to convert a long string into an array?

Solved!
Go to solution

I can convert a long string into a 1-d array by parsing and using build array, but I would like to know if there is a function to make this easier.

 

For example:

 

from/   aaaaaaaabbbbbbbbccccccccdddddddd         (string of ascii)

 

to/       an array that is 1-d with each element having eight characters

 

          aaaaaaaa

          bbbbbbbb

          cccccccc

          dddddddd

 

Thank you.

       

0 Kudos
Message 1 of 3
(2,353 Views)
Solution
Accepted by topic author chuck72352

Try something like this:

 

 

 

(If you can guarantee that the string length is an integer multiple of 8, you an drop the two triangular modes in the upper left. ;))

Message Edited by altenbach on 03-14-2010 06:40 PM
Message 2 of 3
(2,342 Views)

Works great! Thank you.

0 Kudos
Message 3 of 3
(2,327 Views)