04-01-2019 04:13 PM
Hi All,
Lets say I have a specific set of controls (1 & 2) for specific situations (A and B); so for situation A, controls A1 and A2 are required and for situation B, controls B1 and B2 are required. If I am in situation A, I want the controls for situation B to disappear from my front panel.
Attached is a tester VI I was messing about with trying to accomplish the goal stated above...but I am either missing something (I am getting an alternating appear/disappear action on the controls) or I am trying to do something that is not possible in Labview. I have also included the Labview example code I was trying to follow. The example uses a two step process to accomplish what I am trying to do; I would like to know if that process can be carried out in one step instead of two. Thank you in advance.
Solved! Go to Solution.
04-01-2019 04:50 PM
Easy to do. Set the controls visible property to False to hide the control or True to show it. A transparent Tab container is another option but, I hate Tabs.
04-01-2019 05:18 PM
I'm afraid you "over-thought" the problem. Your code (and the Example's code) changes the visibility -- you want to set (or clear) the visibility. In mechanics, it would be mixing up velocity and position. In the "A" situation, set A, clear B (i.e. only write the Property Nodes -- you don't care what they were previously).
Bob Schor
04-02-2019 02:48 AM - edited 04-02-2019 02:49 AM
If you group the controls in a cluster, you can show\hide all controls with only one property node (EDIT: the visible property of the cluster)...
04-02-2019 09:32 AM
Thank you all for the replies. I definitely "over-thought" it!