LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

condition sensitive menu

Solved!
Go to solution

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?

0 Kudos
Message 1 of 11
(3,677 Views)

Can you clearly explain whats your query/problem is?.... If you have made any VI regarding that attach it...

 

Smiley Wink

 

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 11
(3,668 Views)

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>>

Download All
Message 3 of 11
(3,660 Views)

Ok let me show what i mean.

 

I have two menus and first menu is below.

1.jpg

 

When user choose 1, second menu should give this options.

2.jpg

 

If user choose 2 or 3 or 4, second menu should give another options like:

3.jpg

or

4.jpg

 

Now my problem is more clear, right?

 

0 Kudos
Message 4 of 11
(3,651 Views)

This means that you want to edit the items in the ring during the code is running... Or its something else...

 

Smiley Wink

-----

The best solution is the one you find it by yourself
0 Kudos
Message 5 of 11
(3,645 Views)

it is like conditional disable structure but symbols should be identify and determine during the code is running..

0 Kudos
Message 6 of 11
(3,640 Views)
Solution
Accepted by topic author kutlu

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>>

0 Kudos
Message 7 of 11
(3,637 Views)

Could you please save as for version 8.5 ?

 

 

0 Kudos
Message 8 of 11
(3,627 Views)

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:

 

vi_snippet.png

 

 

I've attached a LabVIEW 8.0 version.

 

~Simon

Message 9 of 11
(3,606 Views)

Hi,

Sorry for the delay man,

This is the file in 8.2

 

<<Kudos are welcome>>

0 Kudos
Message 10 of 11
(3,576 Views)