LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Property node to cluster element

Hello All

When clicking at the control cluster element you can create a property node.
But if right click on property node you can NOT Link to the cluster element.
How it is possible, that you can do it only in "one direction"?

Pawel
0 Kudos
Message 1 of 7
(7,229 Views)
From the front panel, you can create a property node for the cluster or for an individual cluster element, depending on what you're pointing to when you right-click. When you then right-click on the property node on the diagram, you can read or write any property for the cluster or the individual cluster element.
I'm sorry I don't understand your statement that "you can NOT Link to the cluster element". If your property node is for the cluster, the only property of an individual element you can read or write is the value (bundled in a cluster). But if your property node is for the individual element, you can read or write any property of that element without affecting other elements.
0 Kudos
Message 2 of 7
(7,229 Views)
Hi Al

Try to make a property node to a cluster element. Then go to diagram and rightclick on the property node and select "Link to". You can not see the name of the cluster element, can you? You see only the name of the cluster.

regards
Pawel
0 Kudos
Message 3 of 7
(7,229 Views)
OK, I see the same thing you do. Apparently, Link To only works on the top level controls (e.g. clusters but not cluster elements). You'll see all the controls on your front panel listed, but not cluster elements.
What are you trying to do with Link To? Change the control connected to the property node after you created it? Why is it important to do this on the diagram instead of on the front panel?
0 Kudos
Message 4 of 7
(7,229 Views)
It is important when e.g. you have a lot of Copy-Paste. You can coppy your structure with a lots of property node to one element. But then I wanted to change element to second element. I thought I could do it by simply Linking to it, but now I see I need to create a property node again and connect it again etc.
Pawel
0 Kudos
Message 5 of 7
(7,229 Views)
Have you looked at creating a property node for the cluster and using the Controls[] property? Controls[] is an array of control references for the elements in the cluster. The array is ordered in the cluster order. If you're doing the same operations on each cluster element, you can put the operations in a loop autoindexed by Controls[]. If you're doing different things for each cluster element, you could create a state machine controlled by the Controls[] index. The property nodes for the indiviual elements will be disconnected from the controls, then the control reference indexed (or autoindexed) from Controls[] will be wired to the reference input of the property node.
You can get a disconnected property node from the Commun
ication >> ActiveX function palette, or your can create a property node for any control, then right-click on the property node and select Disconnect From Control. Don't worry about the label on the disconnected property node until you wire the control reference to it. It will automatically adjust based on what it's wired to.
0 Kudos
Message 6 of 7
(7,229 Views)
Thanks anyway
Pawel
0 Kudos
Message 7 of 7
(7,229 Views)