LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Coverting a 1-D array of Strings to 8x8 matrix

Hi guys i have a 1-D array of strings but i want to dispaly is as 16x16 matrix. But array to matrix vi does not take strings as input so any other procedure is there to convert it?

 

Thanks & Regards

 

Niladri

 

 

 

0 Kudos
Message 1 of 5
(3,150 Views)

"Build Array" and "Transpose 2D array" with a String array, works the same way as with "Array to Matrix.vi" and a "Real 1D Array".

array string.png



Ing. Jonathan E. Cruz Ortiz

ENERGÍA PROACTIVA S.A.S

Cel : (+57) 3173669343 - (+57) 3124451894

0 Kudos
Message 2 of 5
(3,131 Views)

Hi newbee,

 

first: using a "matrix" in LabVIEW is intended for mathematics operations. So a "matrix" will never work with strings...

 

But maybe you just need an 2D array of strings?

Or do your strings contain numbers and you need to convert those numbers to DBL representation?

 

Hint:

Whenever you have specific problems you should attach a VI showing what you have programmed so far AND showing which data you are talking about!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 5
(3,123 Views)

Thanks everyone for their response. And @GerdW yes you are right all I need a 2D array of Strings and I made it using "Reshape Array".

 

Thanks & Regards

 

Niladri

0 Kudos
Message 4 of 5
(3,117 Views)

Hi Newbee,

 

your snippet looks overly complicated to me:

Array.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 5
(3,109 Views)