LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable controls from subvi

Solved!
Go to solution

I have a cluster of Boolean controls on my front panel. I want to manipulate the disabled properties of these Booleans from a subvi. I sent the RefNum of the cluster to the subvi and want to seel a cluster of disabled properties. I found that I can only see a cluster of value properties. If I select disabled, the property node output will be only one value instead of a cluster. I'm wondering whether we can do it this way, could someone give me some advice? Thanks in advance.

 

Guangde

 

 

0 Kudos
Message 1 of 5
(3,385 Views)

"seel" = ??

 

If you send a reference to the cluster, there is a property node for the cluster that allows you to disable it.

 

Please attach your VI and subVI so we can see what you are doing.

 

It's not clear, are you trying to disable an entire cluster or individual items in that cluster?

0 Kudos
Message 2 of 5
(3,378 Views)

Sorry for not being so clear. Because any vis are involved, it's little bit difficultt to attach vis.

 

What I want to enable/disable are individual booleans. But In the subvi, I can only see the disabled property of the cluster, not the individual booleans. I can seel the values of the individual booleans, so I can change their values, but not the other properties.

 

If it's still not clear, I'll attach my vis.

 

Guangde

0 Kudos
Message 3 of 5
(3,371 Views)
Solution
Accepted by topic author guangdew1

There is a property node for the cluster called Controls[ ].  It gives an array of references for all the controls in the cluster.  You can loop through them and use a property node to get the Disabled property for those controls.

 

Message 4 of 5
(3,358 Views)

This is exact what I wanted.I tried it and it works.

 

Thank you for your help.

 

Guangde

0 Kudos
Message 5 of 5
(3,350 Views)