取消
顯示結果 
搜尋替代 
您的意思是: 

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 積分
1 條訊息(共 5 條)
3,234 檢視

"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 積分
2 條訊息(共 5 條)
3,215 檢視

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 積分
3 條訊息(共 5 條)
3,207 檢視

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 積分
4 條訊息(共 5 條)
3,201 檢視

Hi Newbee,

 

your snippet looks overly complicated to me:

Array.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
5 條訊息(共 5 條)
3,193 檢視