10-20-2015 03:55 PM
I want to know if part of the control panel can be switched on and off by external action, as using the mouse or a boolean variable. Has someone any idea that coul help? Thanks
Ricardo
Solved! Go to Solution.
10-20-2015 03:57 PM - edited 10-20-2015 04:02 PM
You can disable controls using the property node and the property "Disabled". You could create a tab control and disable the whole tab control, which will disable everything inside of it.
To do this programmatically, set up your code with an event structure and create an event for when the user changes the value of a button or clicks the mouse.
See example I made:
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
10-20-2015 04:03 PM
James: thank you very much!! I will use your suggestion. Regards
Ricardo
10-20-2015 04:54 PM
I am trying to implement the solution you suggest, but I am having trouble with the use of the property node and the tab control; could you please send me the vi?
Thanks a lot
Ricardo
10-20-2015 04:57 PM
It's not a tab, I just created an array of all the control references I wanted to disable.
The above image is a Snippet. If you have LabVIEW 2014 or newer, you can drag it on to your block diagram as code. It's quite simple to make yourself though as well.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
10-20-2015 05:30 PM
AAAAh!! Sorry, I miss understand. Thanks