LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

disabling controls on front pannel

My goal is to have a different set of controls available depending on the case that is active but I don't want too many controls out that I don't need.  Is there anyway I can enable a control (for example a string control) when a certain case is true and have it diabled for all the other cases? 
 
Thanks
0 Kudos
Message 1 of 10
(13,902 Views)
Hi kelyb5,
i´m not sure what you mean. You can use the reference of the control with a property node. Use the disabled property.

Mike
0 Kudos
Message 2 of 10
(13,896 Views)
kelyb5,
 
     What you can actually do is use property nodes and link them to controls on your front panel.  These properties can remove the controls completely for certain cases and have them come back for other cases.  Another option is to have the controls grayed out.  So link a property node to the control that you want to not have the ability to use and set up the case.  I hope this helps.
 
Michael
0 Kudos
Message 3 of 10
(13,894 Views)

Hello,

Every control can be disabled. Just create a property node and select "disable". Depending the input of this property node, the control will be on "enable or disable"

0 - enabled
1 - disabled
2 - disabled and grayed out

See the attached example

Software developer
www.mcm-electronics.com





PORTUGAL
0 Kudos
Message 4 of 10
(13,886 Views)
I guess saying enabled and disabled wasn't accurate.  I want to hide the controls that I don't want to use because I will have hundreds on my screen and will only want the user to see about 1/9 of the controls when they run the program.  So I don't want to make them gray, I want them to not be seen.  I know there is a hide indicator option but that doesn't allow me, once the program is running, to make it visible or not.  I hope this helps to clarify my problem.
0 Kudos
Message 5 of 10
(13,877 Views)
You can also make the control visible or invisible. Yuor problem will be the organization of the control.
0 Kudos
Message 6 of 10
(13,873 Views)
But how can I automate a control being visible and invisible?  I don't want to manually do it every time.  Is there a way to use a case statement for it?
0 Kudos
Message 7 of 10
(13,870 Views)
Certainly you can automate it using property nodes.
 
The attached VI shows how.
 
(8.5 file)
Jon D
Certified LabVIEW Developer.
0 Kudos
Message 8 of 10
(13,860 Views)
Thanks so much for your help.  Property nodes should do exactly what I want. 
 
Mythilt - Thanks for your example, I've never used property nodes before so it was a huge. 
 
 
0 Kudos
Message 9 of 10
(13,845 Views)
huge help*
0 Kudos
Message 10 of 10
(13,844 Views)