LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to disable a single control within a cluster?

I have a cluster with three controls in it, two of which are mode dependent.
 
I wish to disable one of those two for mode A and the other for mode B.
 
All I have found is a way to disable the entire cluster.
 
Can I disable just one control?
 
Thanks in advance
0 Kudos
Message 1 of 7
(3,909 Views)
If you create a property node for the cluster, then right click the property node, go to "link to", mouse over the cluster which has the check mark by it, and it should show a list of the items in the cluster.  You can select one of those items and know the property node is linked to that item.

Nate

Message 2 of 7
(3,904 Views)

Thanks!

Works just like I needed.

May the software gods smile on you as quickly when you have a question.

 

0 Kudos
Message 3 of 7
(3,897 Views)
glad to help!

0 Kudos
Message 4 of 7
(3,891 Views)

Not only that, but this solved another problem that I had.

 

I have been using local variables for some config initialization and things like that.

I have some clusters with a numeric control and a button.  The button is "latch when pressed"

LabView will not allow local variables with that mechanical action (even though it is only used once at initialization).

Now that I know how to get a node for a control in a cluster (actually a control in a cluster in a cluster) I can use that for initialization.

Thanks again.

 

0 Kudos
Message 5 of 7
(3,883 Views)
Watch out...if you try to use a property node to change the "Value" property of a latch boolean, you'll get error 1193.  It's the same reason you can't have local variables of latch booleans.  Because of this, one simple solution I usually do is to change the boolean action to switch, but perform initialization on the value, then a final value set during cleanup...so I'm making a switch boolean act like a latch boolean.
 
Good luck,
-D
Message 6 of 7
(3,871 Views)

Thank you for the heads up, but I am not trying to change the value of the boolean.

I have a cluster with a switch and a control setting.  When the switch is pressed, the control setting is transmitted to a peripheral.  I wanted to initialize the control setting using one of the CONFIG VIs and couldn't set the value.

I am using the property node to set the value of the control, not the switch.

 

0 Kudos
Message 7 of 7
(3,867 Views)