取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 15 条)
10,939 次查看
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 项奖励
2 条消息(共 15 条)
10,940 次查看
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 项奖励
3 条消息(共 15 条)
10,939 次查看
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
4 条消息(共 15 条)
10,941 次查看

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 项奖励
5 条消息(共 15 条)
10,686 次查看

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...
6 条消息(共 15 条)
10,676 次查看
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 项奖励
7 条消息(共 15 条)
10,653 次查看

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

VR,

Dao

 

 

0 项奖励
8 条消息(共 15 条)
10,619 次查看

Hello,

 

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

 

Thank 

0 项奖励
9 条消息(共 15 条)
9,939 次查看
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 项奖励
10 条消息(共 15 条)
9,928 次查看