how to stop in Gui
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am running a subroutine of controlling the movement of a stage from one place to another. I like to install a 'stop' button in GUI so I can stop the movement anytime I want.
Is there any way I can do it without breaking the subroutine, namely writing the steps of the subrountine into the program itself?
0 commentaires
Réponses (2)
Walter Roberson
le 5 Oct 2011
You would have to set a value somewhere that the subroutine periodically checked and exited if the value so indicated.
2 commentaires
Sean de Wolski
le 5 Oct 2011
Sounds like you want to use a timer:
doc timer
2 commentaires
Walter Roberson
le 5 Oct 2011
Not sure how a timer would assist when it is a matter of a stop *button* ?
Voir également
Catégories
En savoir plus sur Environment and Settings dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!