LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ONE property node for 20 buttons?

Hello, I've got many different buttons, dials etc and want to grey and disable them.
Is there any smart way how to create ONE property node for all of them, rather than a single one for each button.
Cheers, Georg
0 Kudos
Message 1 of 7
(3,244 Views)
Hi,

You can get an array of references to everything you want to disable.
Getting the array of references can be done once, and in several ways. E.g.
getting all controls from the front panel, and in a for loop selecting the
desired controls by name, caption or position. You can also manually build
the array (with Build Array), and fill the array with reference constants.

Then you can make one VI with the array of references, that disables them
all in a for loop.

Doing this with one property node is not possible, unless all the controls
are in one cluster.

Regards,

Wiebe.

"schorsche" wrote in message
news:50650000000800000054EC0000-1079395200000@exchange.ni.com...
> Hello, I've got many different buttons, dials etc and want to grey and
> disab
le them.
> Is there any smart way how to create ONE property node for all of
> them, rather than a single one for each button.
> Cheers, Georg
0 Kudos
Message 2 of 7
(3,244 Views)
In LV7 you can group controls together on the front panel. Perhaps you
can assign an owned label to the group and get properties for the group.

schorsche wrote:
> Hello, I've got many different buttons, dials etc and want to grey and
> disable them.
> Is there any smart way how to create ONE property node for all of
> them, rather than a single one for each button.
> Cheers, Georg
0 Kudos
Message 3 of 7
(3,244 Views)
Hello there,

One thing that you can do is drop down a cluster on the control panel (in array + cluster pallette on the control panel) drop the controls in this and create a property node of the cluster. This way you you can disable them as a group. If you want to access the controls as individual controls again then you would use an unbundle by name function (in the cluster pallette on the function panel).

I hope this helps.

Kind Regards

LouisP
Applications Engineer
NI-UK
0 Kudos
Message 4 of 7
(3,244 Views)
Hello there again,

One thing that I got to mention with this cluster method it is not just limited to just boolean controls you can add numeric controls and text string controls also.

Kind Regards

LouisP
Applications Engineer
NI-UK
0 Kudos
Message 5 of 7
(3,244 Views)
Hi LouisP

I don't think it is possible to make an unbundle by name on a property node to change the property of one element of the bundle...

BUT

It is possible to get the reference of the individual controls (in a vector form), on which you can work individually (as shown in the file).

Doc-Doc
Doc-Doc
http://www.machinevision.ch
http://visionindustrielle.ch
Please take time to rate this answer
0 Kudos
Message 6 of 7
(3,244 Views)
Hi,

If you do it like this, there is no point in using a cluster anymore, you
might as well get all controls from the front panel.

Regards,

Wiebe.

"Doc-Doc" wrote in message
news:50650000000500000001B90100-1079395200000@exchange.ni.com...
> Hi LouisP
>
> I don't think it is possible to make an unbundle by name on a property
> node to change the property of one element of the bundle...
>
> BUT
>
> It is possible to get the reference of the individual controls (in a
> vector form), on which you can work individually (as shown in the
> file).
>
> Doc-Doc
0 Kudos
Message 7 of 7
(3,244 Views)