Showing results for 
Search instead for 
Did you mean: 

is it possible to stop the execution as soon i press stop button



I am using a state machine architecture wherein each state is defined. Once I start the test, the test starts running and i want to stop the test in middle whatever it might be doing. But the test stops after executing the current state. But i want like this----> As soon as i press the stop the button, the test(program) should stop even it is executing the current state.


Here is the program.... Can any better way of doing the following program





Download All
0 Kudos
Message 1 of 3

Hi Rajeshekar,


       First understand the while loop behaviour in LabVIEW. While Loop is similar to a Do while Loop in text-based programming,So it only checks the condition after executing the code written inside the while loop.So you need to take care of the Stop condition to stop the current execution and come out from the while loop.

Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
0 Kudos
Message 2 of 3

Use queud event handler architecture with one loop monitoring events and enqueuing the requried task, other loop de-queueing and executing the tasks...look at this



for details.

Message Edited by JK1 on 05-27-2009 04:16 AM
With regards,
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
Message 3 of 3