LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

controlling loops using customized submenus

Solved!
Go to solution

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

 

Download All
0 Kudos
Message 1 of 7
(2,922 Views)

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

0 Kudos
Message 2 of 7
(2,913 Views)

 

 

0 Kudos
Message 3 of 7
(2,897 Views)

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

 

0 Kudos
Message 4 of 7
(2,896 Views)
Solution
Accepted by topic author uet

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. Smiley Wink

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 5 of 7
(2,882 Views)

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.

Will Hilzinger | Switch Product Support Engineer | National Instruments
0 Kudos
Message 6 of 7
(2,871 Views)

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.

0 Kudos
Message 7 of 7
(2,852 Views)