LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

combine best properties of arrays and clusters

Is there a way I can combine the ability of an array to easily add any number of new elements (and use the vertical scrollbar to move up and down the array), but at the same time be able to set the individual properties of each array element, such as caption, blinking etc?

 

Currently I have an array of clusters, with each cluster have three separate elements (see attachment).  I can easily add new array elements at run-time, so the list keeps on growing and when it gets to a certain size I turn on the vertical scrollbar so the the screen size of the array is kept limited to the size of the GUI.

 

I can then set say the caption property for each individual element in the cluster, BUT then this is duplicated for all other array elements, because array elements must all have the same properties.

 

So I could go to a Cluster of Clusters and have the ability to set the properties of all individual elements, but then how do I keep on adding clusters whose number I don't know at design time?

 

Chris

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

(btw, I don't understand your attachment. How does it relate to your question?)


Chris Reed wrote:

I can then set say the caption property for each individual element in the cluster, BUT then this is duplicated for all other array elements, because array elements must all have the same properties.


 

You can use additional string indicators in the cluster, one for each original cluster element to display arbitrary text (e.g. a fake label).

 

You can make some cluster elements (e.g. numerics) transparent and place a colorbox behind them (for a colorbox indicator, the color is the value!) so each element can have a different color.

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

Yeah I probably should have put more of what I was doing with the attachment (ie. an array of clusters control) - sorry!

 

Your idea was my fall back solution ie. putting extra controls/indicators whose VALUES would represent the different PROPERTIES I wanted to set, but I really didn't want to have to control all this extra data which is all rather in-direct.

 

Then again my alternative of using a Cluster of Clusters and controlling the number and details of what is displayed in each sub-cluster of the fixed size Main Cluster is perhaps even more complicated.

 

Hmmm.... I just think there needs to be some added functionaility in LabVIEW to handle complicated structures that are used for display purposes on the front GUI, ie. Clusters of Clusters and Array of Clusters - bla!

 

Chris

 

 

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

 


Chris Reed wrote:

Hmmm.... I just think there needs to be some added functionaility in LabVIEW to handle complicated structures that are used for display purposes on the front GUI, ie. Clusters of Clusters and Array of Clusters - bla!


While it won't simplify your data structures, at least we can make the complicated data structures to look a bit more appealing on the front panel if my idea is ever implemented.. Please vote for my idea here. 🙂

 

0 Kudos
Message 4 of 5
(2,968 Views)

Well that's a start anyway - I'm Kudos number 108!!!

0 Kudos
Message 5 of 5
(2,961 Views)