LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cluster array appearance

hi all,

I've an array of clusters (red/green light, checkbox, text box ..)
I'd like to modify appearance of ONLY one element of ONLY one cluster of the array (for example, modify backcolor or change info bubble).
Is it possible ?
If yes, could you tell me how I must do or give me an example.

Many thanks in advance for your help.


0 Kudos
Message 1 of 12
(3,428 Views)
Hi max_mont,
right click on the control you need (also inside the cluster) and create a refnum of it. With this refnum you can change what´s possible. If you need to be more flexible you can get the refnums from the front panel and search for your specified cluster. From this cluster you can then also get the refnums of all controls inside the cluster and do what you want and what´s possible.

Mike
0 Kudos
Message 2 of 12
(3,425 Views)
thanks a lot for your help.
but in the property node menu of the array, I see that i can get ref num of element, but which element?
how can i select the element i want to modify ?


0 Kudos
Message 3 of 12
(3,417 Views)
Hi max_mont,
use a loop, go through the array and select by name the control you need. If you search here in the forum, you will find some examples about it.
Mike
0 Kudos
Message 4 of 12
(3,414 Views)
sorry but i'm a newbie in labview development and i don't see.
i'm looking for examples for 2 days and nothing.

0 Kudos
Message 5 of 12
(3,407 Views)
Elements of an array can differ only by their value. They all have the same properties.
 
You could use a transparent control overlayed over a colorbox and then change the value of the colorbox element for one element of the array.
 
Could you attach a small example VI that contains your array and a few notes what you want to change?
0 Kudos
Message 6 of 12
(3,405 Views)
Mike seems to say that it's possible.
in fact, not only i want to chane backgroung color but also tooltip.
I'm very surprised that i'm only one personn who wants to do that.

0 Kudos
Message 7 of 12
(3,395 Views)
Hi max_mont,
attached is a simple example, how to change the tip strip of all elements in a cluster. With this references you can change the available properties.
Mike


Message Edited by MikeS81 on 07-31-2008 07:51 PM
0 Kudos
Message 8 of 12
(3,387 Views)
There appears to be some confusion. Mike's solution shows how to change properties of each individual element in a cluster. However, what the op wants is to have different properties for array elements. In other words, the  tip strip for Boolean 1 in the first element of the cluster array might say 'A' and the tip strip for Boolean 1 in the second element of the cluster array say 'B'. As already mentioned, that is not possible and has been asked numerous times. That is the nature of arrays.
Message 9 of 12
(3,383 Views)

Yes unfortunatly all elements of an array must have all properties the same.  The work around (if you really need to do this) is to decouple the data from the array or clusters datatype.  That is to put n (this is the same as the number of elements visible on your array) clusters on the front pannel and hide the array, populate the data in each cluster with the value from the array and modify the individule clusters as needed.  I have had this delema before, and this is the best solution I have fould, although it is more code intensive.

 

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 10 of 12
(3,373 Views)