LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert 1D string array to 2D array

conversion from string to number is not that important, I can do it later. My problem is right now how to split the string( every 8 chars or every 4 chars) and insert them in the next columns ( the same row). Can you help me to do this?

I tried using split string but then how can I move it to the next cube?

0 Kudos
Message 11 of 16
(1,721 Views)

@tintin_99 wrote:

conversion from string to number is not that important, I can do it later. My problem is right now how to split the string( every 8 chars or every 4 chars) and insert them in the next columns ( the same row). Can you help me to do this?

I tried using split string but then how can I move it to the next cube?


Post what you've done and we'll discuss.

0 Kudos
Message 12 of 16
(1,718 Views)

You can use String Subset to get the characters you need and then Replace Array Subset to write that substring into the location you want it.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 13 of 16
(1,701 Views)

Hi

 

I need to display an array of strings obtained from a loop. I tried to tabulate it but that requires a 2D array. Now i have no idea how to convert it into 2 dimensional string array, please help

 

thankyou 🙂

nivi 

0 Kudos
Message 14 of 16
(1,646 Views)

Use Build Array with just 1 element.  You may need to use Transpose 2D Array to get it to show up in your table the way you want.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 15 of 16
(1,629 Views)

Yup, both build array and transpose solved it. 🙂

 

Thanks a lot 

nivi

0 Kudos
Message 16 of 16
(1,622 Views)