LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Property Node for a control within a cluster

Hi

I want to set some properties (via a property node) of some controls that
are held within a cluster. I can create a property node for the cluster
itself, but how do I create one for a control within the cluster?

Nick
0 Kudos
Message 1 of 15
(10,528 Views)
I guess you are talking about attribute nodes, if so, right click on the control you want in the front panel, and select create>>attribute node. This will create an attribute node for that control/indicator.
Hope this helps
0 Kudos
Message 2 of 15
(10,529 Views)
Hi Nick,

you should use the cluster property Controls[].
This returns an array of references to your controls inside the cluster; use these references to control the properties of each control.

I attach a simple vi that exctract the labels of the controls in a cluster and progammatically hide/show them.

N.B. the references are indexed according cluster order.

Good luck,

Alberto
0 Kudos
Message 3 of 15
(10,528 Views)
If you right click on a control, even one within a cluster, you can
Create a
statically linked Property node. It is a bit more difficult to dynamically
get to them, but from the cluster, you can get an array of control refnums
which can be cast back to the actual control type.

Greg McKaskle

Nick Ford wrote:
>
> Hi
>
> I want to set some properties (via a property node) of some controls that
> are held within a cluster. I can create a property node for the cluster
> itself, but how do I create one for a control within the cluster?
>
> Nick
Message 4 of 15
(10,530 Views)

Hi Everyone,

I am dealing with a similiar cluster problem except that I am implementing a cluster within a cluster.  Within a base cluster is a set of a UI controls and a top-level cluster contain a multiple of base clusters.  The reason I am doing this way is to capture value change of each individual control within the base cluster via the event structure.  When I am using the property note, I can only get an array of controls which are references to base clusters.  My question is how can I get the second list of controls which are references to the controls within the base cluster?  I am very appreciated any comments or hints to this problem.

Respectfully,

Dao

Labview User

 

 

 

0 Kudos
Message 5 of 15
(10,275 Views)

Hello Dao,

this thread is quite old...

but the answer there is the right one. i extend on it for including clusters within clusters:

you create a property node. then link it to the envelope cluster, which will give you a reference to all its controls. now, you go to a more specific class, from which you extract reference to the inner clusters. from there you again have reference to all controls.

in case your envelope cluster includes not only clusters, it is a bit more involved.

Does it helps?

Message Edited by Gabi1 on 06-09-2007 04:44 PM

-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
Message 6 of 15
(10,265 Views)
Definitely, I'll go with Greg.
 
You don't need additional codes just to reach the refnum of the controls within clusters within clusters within clusters and so on. Just right click on the control and create property node
0 Kudos
Message 7 of 15
(10,242 Views)

Thanks everyone.  I have learned something new today.  It works.  Again, thanks.

VR,

Dao

 

 

0 Kudos
Message 8 of 15
(10,208 Views)

Hello,

 

This example is clear, however, how do you access to the Data Range of a numeric Control ? 

 

Thank 

0 Kudos
Message 9 of 15
(9,528 Views)
Again, this thread is quite old.  And yes you do.  You can try it for yourself by putting a numeric in a cluster, right clicking and choosing Create -> Property Node -> Data Entry Limits
0 Kudos
Message 10 of 15
(9,517 Views)