12-27-2011 10:03 AM
i want to start a execution by pressing "start" in submenu option then by pressing"stop" in submenu to stop execution.
but i am unable to stop the execution......
help me if anybody knows
i am attaching vi
Solved! Go to Solution.
12-27-2011 11:55 AM
There is one Vi missing in your attachment, but even without it, your diagram is not designed optimally. You want to put your case structure within the "Menu Seclection (User)" event case (and get rid of the 200 ms wait + Get menu selection function in that case. Also, put the Stop button terminal in a separate "Stop button: Value Change" event case. Right now, your only chance to stop your loop is to activate the menu while at the SAME time press the button. Very unlikely to happen...
12-27-2011 10:20 PM - edited 12-27-2011 10:26 PM
12-27-2011 10:26 PM
i did all thing you mentioned but not acheived.
Now problem is that menubar is disabled .i couldn't select any items from menus.
guide me now i m using single vi ..
how i stop the execution from stop menu item???????
12-28-2011 04:51 AM
Hi uet,
I have changed your vi, instead of having case structure inside Event structure, I kept event in case...Its proper State diagram style.
As I have used strings I will call it modified state diagram. This could be much better, but I leave it to you.
12-28-2011 10:25 AM
Hello, uet!
I see that Gak has given you some good suggestions. Do you have any further questions on your start/stop execution? I know that many folks are out for the holidays, so feel free to let us know whenever you return.
12-29-2011 04:33 AM
Hi Gak,
Thanks to Kudos
I appreciate your help for the solution of above problem....
i mold your example and test it separtate accordingly i require.
it will work.
i post the modified vi with my requirement ............
Although it is main vi i am sending only.