03-14-2022 02:38 PM
Hi All,
I am working on a project where I want to disable certain controls in my Main VI front panel. I've attached the Sub VI that I am using to do this. In my main front panel I have a tab control that has other controls inside it that I also want to be able to enable and disable using this Sub VI. I've noticed that my current method of only using the Pane reference cannot access those controls inside the tab control. Is there something relatively simple that I can implement into my current SubVI to do this? Or do I need to rethink my design.
Regards,
Tristan
03-15-2022 12:06 PM
There is a hierarchy to ownership of controls. The pane owns the tab control, and the tab control owns the controls that are on it; but the pane doesn't own (directly) the controls that are on the tab control. The attached VI traverses the pane for all controls.
Also your coding style is quite poor. Learn to code properly and neatly.