LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change Attribute in Cluster

Hi LabViewEr,
I have an array of cluster (indicators, arrays and 'LEDs').
This cluster does summarize the results of a long test. I would like to
show pass/fail by colouring some of the indicators to show which
specification was failing during test.
I have no idea how I can change *one* indicator attribute in a cluster.
Any hints?

Thanks
Urs Bogli
0 Kudos
Message 1 of 6
(3,374 Views)
On the front panel, select the indicator and Create->Property Node from the right button menu.


LabVIEW, C'est LabVIEW

0 Kudos
Message 2 of 6
(3,374 Views)
Urs,

Jean-Pierre is correct, partially. LabVIEW only stores the values of controls in Arrays. There is one set of properties that are the same for every element in the array (except for value of course). So, if you set one control flashing, then all of them will flash. By doing as Jean-Pierre describes, you get a Property Node for all of the elements of the array, not just for one control in an array of clusters.
I would suggest having a boolean that represents failure. This is settable since it is a value. You could create multiple booleans, one for each specification, or just an array of booleans where each array index represents a particular specification.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 3 of 6
(3,374 Views)
Randy et Jean-Pierre,

thanks for your input, but I think I described my problem not very
accurately.
My problem is I want to set coloured one ore more of the indicators of the
cluster in one specific element in the array.
There are two difficulties: How to change the properity of an element of a
cluster and how to do it only in one element of the array.
I tried to have an UIR like that because I get too many LEDs otherwise
beside a already high number of indicators. I guess that's not possible -
but I would like to know how to change properity of elements of
arrays/clusters for self-educational reasons.
Best way would be to have a properity of the indicators with a
programmable case dependent colour 😉

Thanks for any hints
Urs




Randy H schrieb:

>
Urs,
>
> Jean-Pierre is correct, partially. LabVIEW only stores the values of
> controls in Arrays. There is one set of properties that are the same
> for every element in the array (except for value of course). So, if
> you set one control flashing, then all of them will flash. By doing as
> Jean-Pierre describes, you get a Property Node for all of the elements
> of the array, not just for one control in an array of clusters.
> I would suggest having a boolean that represents failure. This is
> settable since it is a value. You could create multiple booleans, one
> for each specification, or just an array of booleans where each array
> index represents a particular specification.
>
> Randy Hoskin
> Applications Engineer
> National Instruments
> http://www.ni.com/ask
0 Kudos
Message 4 of 6
(3,374 Views)
Sorry Urs, I miised the word "array" in your original post. Randy is right, you can't use properties to set colours on different array elements because the properties apply to all elements. The color must be data in the cluster e.g. color box od picture ring. See my previous reply on this matter, with example code at
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=137&HOID=5065000000050000008D3D0000&HTHREAD=000015757&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0 .


LabVIEW, C'est LabVIEW

0 Kudos
Message 5 of 6
(3,374 Views)
Urs,
If you want to change the properties of an individual cluster (i.e. not in an array), then you can use the Controls[] Property node which will give you an array of control references to the controls/indicators in the cluster. One can then use these references with property nodes to change properties of in individual control. Remember though, this does not work when in an array because in an array, there is only one set of property nodes for all elements in an array.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 6 of 6
(3,374 Views)