LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable menu ring depending on conditions

Solved!
Go to solution

Hi all,

I have two menu rings and I want to disable one of the two menu rings depending on the value set with the first meu ring.

More precisely if I select "option 1" with the first menu ring I would like to have the second menu ring disabled and fixed on a certain value that is the only possible value allowed for the "option 1".

I need to use the menu rings because if I select "option 2" on the first menu ring, I must be able to select among all the possible values of the second menu ring since they are all allowed.

How can I do that?

Many thanks in advance!

0 Kudos
Message 1 of 4
(1,735 Views)
Solution
Accepted by topic author mol90

 Hi,

 

You can play with the menu properties values. See below the example.

 

Menu_ring.png

0 Kudos
Message 2 of 4
(1,726 Views)

Hi mol,

 


@mol90 wrote:

How can I do that?


  • Use an event structure to handle value change of MenuRing1.
  • Read the MenuRing1 value and wire it to the selector of a case structure.
  • In case "Option1" you use a property node to disable (and gray out) MenuRing2 as well as set it's value to the desired item.

Edit: As shown by Defaphe…

 

Are you really working with Rings - or do you use Enums? It sounds like you are using a static number of items…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 4
(1,724 Views)

(I agree that you might to work with enums instead. Would simplify certain things.)

 

The solution you got above will disable the entire second ring. A more flexible option would be to use the "Disabled items[]" property node. Now you can disable specific items as needed. Maybe later you want to allow more than one, but still not all items. 😄

 

altenbach_0-1643990813925.png

 

0 Kudos
Message 4 of 4
(1,697 Views)