LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling Front Panel Controls

Solved!
Go to solution

@Zzimmha42 wrote:

Apok,

 

I like your solution bc I'm not a fan of disabling each control individually, but my only question is lets say I have 20 controls, but only want to disable 15 of those 20, is that possible with your setup?


it's possible...my question is: are the 15 controls disabled dynamically changing by the user or done programically. also, is it  static(always the same)?

 

references are probably the best way to disable them vs property nodes Smiley Wink

0 Kudos
Message 11 of 12
(832 Views)

@Zzimmha42 wrote:

Apok,

 

my only question is lets say I have 20 controls, but only want to disable 15 of those 20, is that possible with your setup?


Then I would use the Find Object by Label (vi.lib\Utility\traverseref.llb\TRef Find Object By Label.vi) in a for loop giving it an array of string labels to find.  Or wrap that into a subVI along with the enable disable, so you provide an array of labels to a subVI, and it enables or disables them.

 

I've also seen other versions of this that work with regular expression finding all controls that match some pattern.

0 Kudos
Message 12 of 12
(816 Views)