08-27-2014 03:36 AM - edited 08-27-2014 03:36 AM
Hello,
Can anyone help me to please figure out why my stop button can't stop the state machine, I want to stop the program even the program is running.. and it's sad to say for my side that, when i pressed the Stop Button it will only stop until the loop is done. and What I really want is to stop it even the loop is running. I've attached here my vi for your refference..
Thank you and Best regards,
syrpimp
Solved! Go to Solution.
08-27-2014 03:38 AM
08-27-2014 03:41 AM - edited 08-27-2014 03:43 AM
Thanks GerdW, but how to set it up?
Thank you and Best regards,
syrpimp
08-27-2014 03:42 AM
08-27-2014 03:46 AM
I'am sorry, I already tried that, but it can't help me. I pulled out the stop button and connect it directly to the contitional terminal but the for loop continue to run..
Thank you and Best regards,
syrpimp
08-27-2014 03:49 AM
08-27-2014 03:52 AM - edited 08-27-2014 04:01 AM
Would you mind if you can show me a simple code for that..
because i try somthing like this in my program and nothing happened.
Thank you and Best regards,
syrpimp
08-27-2014 03:56 AM
08-27-2014 04:05 AM - edited 08-27-2014 04:06 AM
I've already tried that, and once you click the stop button, The program will let the loop to finished first and then Stop, I want is When you click the Stop Button It should Stop Instantly. I'am sorry I was just confused
Thank you & Best regards,
syrpimp
08-27-2014 04:08 AM - edited 08-27-2014 04:08 AM
Hi syrpimp,
you cannot stop a loop instantly - you have to stop all the function it contains! THINK DATAFLOW!
So you need to check your stop condition in all states and in all loops embedded in those states to allow an emergency exit…