LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display cluster in a table

I have a cluster of 16 elements I wondering how would I display this information in a table indicator so that each element has its own box?

----------------------------------------------------------------------------------
I have not lost my mind, it's backed up on a disk somewhere
0 Kudos
Message 1 of 10
(4,150 Views)

Hey,

 

you could use a Table Indicator and wire a 2-D Array of strings to it. First dimension for the Rows second for columns

.Table.png

Regards,

CMW

0 Kudos
Message 2 of 10
(4,148 Views)

How will my cluster wire up to this solution?

----------------------------------------------------------------------------------
I have not lost my mind, it's backed up on a disk somewhere
0 Kudos
Message 3 of 10
(4,139 Views)

 

Damn, I read to fast, thought you have an array....

Nevertheless, do you have the same datatypes in the cluster ?

So you could change it to an array an wire it to the control.

 

But I don't know, if  this is the best solution..

 

Regards,

CMW

 

0 Kudos
Message 4 of 10
(4,131 Views)

My datatypes are all different. Ranges from strings, numeric values, boolean, timestamp and an array of 4 numeric indicators

----------------------------------------------------------------------------------
I have not lost my mind, it's backed up on a disk somewhere
0 Kudos
Message 5 of 10
(4,126 Views)

As a definition from the LabVIEW Help: "A table is a 2D array of strings."

So if you want to use the table, you need to change you dataentries to stings.

 

Is it necessary to show all in a table or is it sufficient to show the cluster?

 

Regards,

CMW

Message 6 of 10
(4,115 Views)

For the purpose of the program spec it is to be displayed it a table? My data input is coming from an XML file and the tags can't be changed. Is there an alternative to a table but of a similar display structure?

----------------------------------------------------------------------------------
I have not lost my mind, it's backed up on a disk somewhere
0 Kudos
Message 7 of 10
(4,107 Views)

A Quick & Dirty way to solve your problem with the cluster.

 

Just add some decorations to the cluster so that it looks like a table.

 

Table2.PNG

 

Regards,

CMW..

Message 8 of 10
(4,091 Views)

Hi

 

I think that the convetional way is the best way.

Unbundle be name, convert to strings if required, bind it together to build a string array.

Do this as often as it must be done.

Display the array in a table indicator.

Don't convert back from the table data to the cluster.

You might loose accuracy.

 

For enhancement use: defer panel updates if needed.

 

Kind regards

 

Martin

0 Kudos
Message 9 of 10
(4,066 Views)

Hey,

 

this way and how to  convert all elements to a string is continued in this post http://forums.ni.com/t5/LabVIEW/Convert-cluster-to-string/td-p/2886864

0 Kudos
Message 10 of 10
(4,058 Views)