LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DisabledItems[] Property Node

Solved!
Go to solution

Hi,

 

I use a couple of Ring Controls to allow the user of my GUI to make some selections.  I want the available options in one Ring Control to be dependent on the selection made using the other one.  I do this using the DisabledItems[] property node.

 

See the attached example.  The selection made using the "Board" Control affects which items are disabled in the "Image Type" control.  However, it is still possible for the user to indirectly select an invalid option (which would cause a significant malfunction of the overall GUI).

 

For instance, in the attached VI, select "SCB" in the "Board" control, then select "Initial Boot" in the "Image Type" control.  Then change the selected Board to "ACB".  The image type remains as "Initial Boot" (albeit greyed-out) - a scenario which is not allowed.

 

Is it possible to prevent the disabled items from remaining selected?  Failing this, is it possible to flag up when a disabled item is selected, so that the user can be prompted to change their selection?

 

Any advice greatly appreciated.

 

Dan

Dan
CLD
0 Kudos
Message 1 of 2
(2,891 Views)
Solution
Accepted by topic author DanB1983

I find the Event Structure helps out a lot in situations like this.  See my attached VI...in the Value Change event for the Board control, I see if the current Image Type is one of the newly-disabled values...and if so, I change its value (in my simple case, I set it to "Operational" since that appears to be a valid setting for all Board types).  Hope this helps...

Message 2 of 2
(2,876 Views)