From: Toby on

Hello all,

Although I am not new to matlab itself, I am fairly new with making GUI's and I have a GUI related problem which I do not know a way around. Maybe you can help me.

I am making a GUI that will control explosive gasses by operating valves (via an analogue computer output). This GUI contains of an infinite while-loop, with each loop taking about 1minute to complete.

I want to make the program more secure by implementing an 'emergency button'. This button should stop the loop and close the valves immediately.

How do I stop the while loop, without having to wait until the current loop finishes?

Thank you for any help.

Toby