11-04-2024 06:19 AM
Hello friends!
How do I make the attached vi recognize changes in the state of the controls if the controls are inserted in the tab. When the controls are outside, everything works fine, but if I insert the control into the tab, changes to it are not detected.
Thanks for the help!
Solved! Go to Solution.
11-04-2024 06:59 AM
Hi Marcelo,
@MarceloPinto71 wrote:
How do I make the attached vi recognize changes in the state of the controls if the controls are inserted in the tab.
You need to get the references to those controls, too.
To do so:
11-04-2024 07:35 AM
11-04-2024 08:53 AM
@GerdW
I'm sorry for asking more, but could you give me an example with the boolean and boolean2 controls inside the tab? I think it will be easier for me to understand. I'm a bit confused.
11-04-2024 09:16 AM - edited 11-04-2024 09:17 AM
11-04-2024 10:34 AM
@GerdW , It is working! Thank you very much!
11-07-2024 07:45 AM
I see that you have a solution for your current requirements. However if you use splitters or have a Tab control on a Tab control this will fail.
A more flexible option is to use: Traverse for GObjects.vi. This vi will recursively find objects nested within container objects.
It's under the VI Scripting umbrella but is available in the Run Time Engine so you can use it in executables.
This vi can be found here (substitute your LabVIEW version):
C:\Program Files (x86)\National Instruments\LabVIEW 2021\vi.lib\Utility\traverseref.llb\Traverse for GObjects.vi
To enable searching for it with Quick Drop - turn on Scripting:
LabVIEW Menu: Tools >> Options >> VI Server >> VI Scripting > Show VI Scripting functions ...
You may ask "Why have a Tab on a Tab?". I like to use invisible Tabs for different system configurations.
See attachment (LabVIEW 2021)