LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

run-time menu works only when selected twice! HELP.....

hi,

I am using run-time menu in a vi which is running on LV-FDS. When I select an item from the menu, it does not give any response for the first time- as if that menu is not linked to any action in the diagram. But, When I select the same item for the second time, the action takes place as it has to. This is applicable for all the entries I've made in the menu. Menu includes user defined items and the actions are performed thru' a case structure wired to the tag terminal of the menu-selection vi.

The vi is controlling an automated test sequence and carries out a hell lot of activities. There are two while loops running independently and the menu selection is a part of one of them. I've tried
changing the ms-time out values, to see no effect on the problem. I also tried using a seperate while loop only for the menu selection, but the problem remained the same.

Pls let me know if any one has a suggestion for the same.

thanks and regards,

Sudheer
0 Kudos
Message 1 of 7
(3,084 Views)
Hi,
take a look in LV \ examples \ general \ menubars.llb in order to check if you are dooing it the same way (maybe you are missing something).

Good Luck !
0 Kudos
Message 2 of 7
(3,083 Views)
Did you put the menu reference "Current VI's Menubar" *outside* the while loop? If it is inside then the menu has that "double pick action" that you are talking about. You only need to set up the reference once (not every time the loop runs). I think it's a bug.

Rob
0 Kudos
Message 3 of 7
(3,083 Views)
> Did you put the menu reference "Current VI's Menubar" *outside* the
> while loop? If it is inside then the menu has that "double pick
> action" that you are talking about. You only need to set up the
> reference once (not every time the loop runs). I think it's a bug.
>

Also check that your parallel loops aren't both reading the menu item.
Only one loop will receive the menu selection and the second will not.


Greg McKaskle
0 Kudos
Message 4 of 7
(3,083 Views)
hi Greg,

Thats great! Actually I could solve the problem the same day after entering in the forum. It was exactly what mentioned by you.
There were two parallel while loops and the menu was called in both. The menu which i was calling was getting selected for the second clock while the other one works for the first click.

Thanks for your suggestions, friends.

regars,

sudheer
0 Kudos
Message 5 of 7
(3,083 Views)
hi,
can any help me how to select an item in the block diagram for a particular menu option.if u any documents or examples ,please help me.thank you,
bharat
0 Kudos
Message 6 of 7
(3,067 Views)
Thank you for posting on the National Instruments Discussion Forums.

Regarding you question, it is not possible to make any modifications to the block diagram while the VI is running. It is my understanding that you would like to select and possibly modify items on the block diagram while your VI is running. This will not be possible. If this does not answer you question, I would like to ask you for a more detailed description of the functionality you would like a particular run-time to have.

Also, if the above information did not answer your question, I would like to ask you to post a new question, and not a reply to this thread. This question is several years old, and most likely no one other than myself will read or give feedback on your issue.

Thank you, and have a great day!

Scott Yellig
Applications Engineer
National Instruments
0 Kudos
Message 7 of 7
(3,051 Views)