LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using a "menu ring" feature on the front panel with event structures

hello - right now i have many event cases controlled by many "ok buttons". i would like to use a menu ring on the front panel to save space from all those buttons, but i don't see how it will work with all the individual event cases. currently each event is tied to a single button, and the menu ring acts as one thing on the block diagram so i can't tie an event to a choice in the menu. any suggestions? thanks....
0 Kudos
Message 1 of 8
(5,616 Views)
Personally, I would look for a Change Value in your ring control and use the NewVal property to control a case structure within the event structure.
Message 2 of 8
(5,603 Views)
Use one single event case for a "value changed" of the menu ring. Inside the event case, place a big case structure that is controlled by the menu ring, and add as many cases as you have menu ring entries.
 
Each case should contain the code appropriate for the currently triggerd menu state (each case corresponding to one of your original events).
 
See how far you get. 🙂
Message 3 of 8
(5,603 Views)
You guys are too quick.  I was taking the time to make a picture, so even though the question was answered, I'll post it anyway.
 

Message Edited by Marc A on 02-09-2006 04:03 PM

Message 4 of 8
(5,601 Views)
Yes, but a picture is worth a thousand words.  (or 5 stars Robot Very Happy)
0 Kudos
Message 5 of 8
(5,591 Views)
Haha, thanks.  The favor was returned.. stars for everyone!
Message 6 of 8
(5,587 Views)
thanks....does the "0" default get changed to whatever the text inside the menu ring is?
0 Kudos
Message 7 of 8
(5,581 Views)

Alternativley, you could use an enum control instead of a menu ring. It will name the cases according to the selection automatically. 😄

If you want to use a menu ring and strings, you could do something like in this image.

Message Edited by altenbach on 02-09-2006 01:43 PM

Message 8 of 8
(5,574 Views)