07-29-2015 11:53 AM - edited 07-29-2015 11:56 AM
@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
07-29-2015 12:02 PM - edited 07-29-2015 12:02 PM
@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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord