LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help ------>> Property node in Array

How the properties of each element of the array are managed?

I cannot find anything that works well !

Thank you in advance.

Umberto.
0 Kudos
Message 1 of 4
(3,000 Views)
In an array all elements share the same properties.

You may be able to simulate some behaviour by overlaying something else on top of the array (that can e.g. hide an element by being transparent in one case or share the panel color in another...), but otherwise you'll have to use something else than an array.

It may not be an alternative, but setting properties of individual elements in a cluster is easy, you can create static property nodes or references for the individual elements, or often more practical; just use a reference to the cluster and read the controls property of it to get references of all the controls...then access the control indexes (or get the names and search for the names)you want and set their properties.
Message 2 of 4
(3,000 Views)
Oh! Thank you

I had already proven it is necessary to gather the elements in a cluster,
but it is too laborious to adjust the properties of the elements one to one.
I want to make blink/fix/change color, more than100 signals!

I didn't find the index way. I have proven as you tell me to create a
reference to the cluster but it doesn't work me.
I will continue proving.

Thank you another time. Umberto.



"Mads" escribió en el mensaje
news:506500000005000000212C0100-1042324653000@exchange.ni.com...
> In an array all elements share the same properties.
>
> You may be able to simulate some behaviour by overlaying something
> else on top of the array (that can e.g. hide an element by being
> transparent in one case or share the panel color in anot
her...), but
> otherwise you'll have to use something else than an array.
>
> It may not be an alternative, but setting properties of individual
> elements in a cluster is easy, you can create static property nodes or
> references for the individual elements, or often more practical; just
> use a reference to the cluster and read the controls property of it to
> get references of all the controls...then access the control indexes
> (or get the names and search for the names)you want and set their
> properties.
0 Kudos
Message 3 of 4
(3,000 Views)
If you have gathered the elements in a cluster and that's OK then controlling all properties of each element with a simple code should be possible. Could you upload the test you did when you found out it would not?

If you need to access a property that is not available when using a generic reference you can use the "To more specific class" function.

I have attached a small example that will change color and blinking of two controls based on their names. If you change the color or the name of the control you want to color...the code finds the specified control and sets the color, the same goes for the blinking. For the color a to more specific class function is used.

If you know the indexes and have hundreds of control you need to set
the logic becomes slightly different, but it's still no big problem to solve it.
0 Kudos
Message 4 of 4
(3,000 Views)