09-27-2010 03:15 AM
Hello there
I have a question about ring menus which can be changed by choosing a condition. It will be something like that: a menu with items 1,2,3,4 and another menu that's items are a,b for 1, a,c,d for 2, b,d for 3 and a,d for 4. That is kinda like a drop down menu that is connected a previous menu. Is that kind of menu possible?
Solved! Go to Solution.
09-27-2010 03:29 AM
Can you clearly explain whats your query/problem is?.... If you have made any VI regarding that attach it...
09-27-2010 04:14 AM
Hi,
Ring or enum,, it is not possible.
you can go for menu bar...
It can be created by this menu options
Edit--> Runtime menu...
that will helpful for your requirement...
<Kudos are welcome>>
09-27-2010 05:06 AM
Ok let me show what i mean.
I have two menus and first menu is below.
When user choose 1, second menu should give this options.
If user choose 2 or 3 or 4, second menu should give another options like:
or
Now my problem is more clear, right?
09-27-2010 05:28 AM
This means that you want to edit the items in the ring during the code is running... Or its something else...
09-27-2010 05:37 AM
it is like conditional disable structure but symbols should be identify and determine during the code is running..
09-27-2010 05:44 AM
Hi,
I got your problem thats why i told you to use the menu option. Because in ring, if you use the charecter. then in the forther processing it will give you only index. For ex. If you connected the second ring output to the case structure, in case structure you will get only the numbers not the charectors.
but in enum you cannot dynamically edit the values. only you can assign values in the edit mode only.
But any way try this VI.
It will be helpful for you i think...
<<Kudos are welcome>>
09-27-2010 06:53 AM
Could you please save as for version 8.5 ?
09-27-2010 10:32 AM - edited 09-27-2010 10:36 AM
utlu,
You can do this quite easily using the "Value Changed" event on the first ring and the "Strings[]" property node on the second.
Here's what the code would look like:
I've attached a LabVIEW 8.0 version.
~Simon
09-27-2010 09:03 PM
Hi,
Sorry for the delay man,
This is the file in 8.2
<<Kudos are welcome>>