LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

string to 2d array

Solved!
Go to solution

Hi all,

 

I have the attached string sent via TCP server and received from my client, I want it to be formatted in a 2 row n columns (n is the number of channel). I've attached the input string and the result I want. Any help?

 

Thank you

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

I'd go for this:

String to 2D Array.png

 

So first replace all ';' with '\n' so Spreadsheet String To Array will work nicely. The rows\columns will be transposed. The Transpose 2D Array will fix that.

 

I doubt there will be a more efficient way both performance-wise, as in programming effort. All three functions are very fast (when used this way).

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

Thank you!

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