ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

取消
显示结果 
搜索替代 
您的意思是: 

condition sensitive menu

已解决!
转到解答

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 项奖励
1 条消息(共 11 条)
4,221 次查看

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

 

眨眼表情

 

-----

The best solution is the one you find it by yourself
0 项奖励
2 条消息(共 11 条)
4,212 次查看

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

下载全部
3 条消息(共 11 条)
4,204 次查看

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 项奖励
4 条消息(共 11 条)
4,195 次查看

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

 

眨眼表情

-----

The best solution is the one you find it by yourself
0 项奖励
5 条消息(共 11 条)
4,189 次查看

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

0 项奖励
6 条消息(共 11 条)
4,184 次查看
解答
接受人 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 项奖励
7 条消息(共 11 条)
4,181 次查看

Could you please save as for version 8.5 ?

 

 

0 项奖励
8 条消息(共 11 条)
4,171 次查看

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

9 条消息(共 11 条)
4,150 次查看

Hi,

Sorry for the delay man,

This is the file in 8.2

 

<<Kudos are welcome>>

0 项奖励
10 条消息(共 11 条)
4,120 次查看