LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I reset the index of a menu ring back to zero after reading from it?

I am dynamically populating the strings in a menu ring with an array of strings where the 1st element is the string "Please Select One" and elements 1 - n are dynamically created based on user input.

I have a loop running that monitors the menu ring for changes every second (i.e. a user selection hence the reason for have the string "Please Select One" as the first - allowing the user to choose the 1st dynamically created menu item). After the user selects one and I read the index and proceed through the program, I'd like to reset the menu ring to all zeros or at least to the default index 0 ("Please Select One").

Right now, the previous index is stored and even when the menu
ring is repopulated with a new set of strings, the default value is the one from the last time it was run thus rendering that particular index un-selectable because it leaves the output index of the menu ring unchanged.
0 Kudos
Message 1 of 2
(3,018 Views)
Hi,

All you need to do is write to a local variable of the ring control, see attached file for example.

hope that helps
Ray
Regards
Ray Farmer
0 Kudos
Message 2 of 2
(3,018 Views)