LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

different string types in a table

Hello,
 
 
I have an 2D array which is built from 1 array which is Hex values, and another array with is just text string info I display this in a table.  Can I format the table to display each format? 
 
 
Thanks,
 
 
Andrew
0 Kudos
Message 1 of 4
(2,633 Views)

You cannot mix types within an array. 

You can have an array of Hex (numerics) and another array of strings.

If you do want to have different types within an array, you can place the numeric (HEX) and the string into a cluster and place the cluster into a 1D array.  Then you end up with an array of clusters.

R

Message 2 of 4
(2,621 Views)

I was thinking this was the case, was just wondering if there was a way I was missing to keep it in a 2D format.  Thanks for the response.  I will keep the cluster option in mind and try it out.

 

Andrew

 

PS.  I think I took a LV basics course with you in Ottawa like 2 years ago, or at least it was someone with a similar posting name.

0 Kudos
Message 3 of 4
(2,614 Views)
A table is just a 2D array of strings, so all you need to do is apply the correct formatting for each slice before you merge them. Since a table is typically for display, you need to do some formatting under the hood.The strings that you have in hex display need to be formatted so they show as hexadecimal formatted strings in normal display.
 
0 Kudos
Message 4 of 4
(2,609 Views)