11-18-2012 07:31 AM
I am creating a UI and want to give all selectable options to user through cutomized run time menu bar.However,I am facing a problem with that:
If I click on any of the menu item in the customized bar, I am not able to select any other option till the execution of the first is over.For example for controlling the execution of a certain test if I give "run" and "pause" items under "test" in the menu bar and click on "run", the control does not come back to the menu bar for selecting other option ("pause" in this case) till the execution of the test gets over.Thus making "pause" option useless.Is there any way to overcome this?
Solved! Go to Solution.
11-18-2012 08:31 AM
How are you handling the selection of a menu point?
You need to show us what you are doing, to be able to help you in the right way.
11-18-2012 09:12 PM
I am customizing the run time menu bar as:
and for programming it I am using user event structure:
11-18-2012 09:56 PM
One way to do that is to have your test on a separate While loop running in parallel, waiting for the signal. The menu option signal the separate While loop to start or stop the test. See image for example:
11-18-2012 10:16 PM
Hi Enrique,
Thanks for responding.Instead,can I use dynamic events concept here?
11-18-2012 11:08 PM
Hey Enrique,could you please post the vi from which you have posted these images?
11-19-2012 04:47 AM
Hi all, any suggestions on how to accomplish this?
11-19-2012 09:00 PM
Attach is the example.
11-20-2012 03:28 AM
Thanks alot Enrique.....Instead, Can I use dynamic events here?
11-22-2012 04:30 PM
The problem in your code is that, as you have all you code inside the Event Structure. The Event structure can not handle more events until the code inside the structure has completed. So as long as the code inside the "Run" case is runing, your Event Structure can't do anything with you selecting of menu's.
As Enrique has suggested, you need to seperate your runing code from the Event Structure.
Just one commet to Enrique's code, don't use local variables to signal between to while loops. Use Queue's or Notifiers for that.