how to stop in Gui
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (2 件)
Walter Roberson
2011 年 10 月 5 日
You would have to set a value somewhere that the subroutine periodically checked and exited if the value so indicated.
2 件のコメント
Sean de Wolski
2011 年 10 月 5 日
Sounds like you want to use a timer:
doc timer
2 件のコメント
Walter Roberson
2011 年 10 月 5 日
Not sure how a timer would assist when it is a matter of a stop *button* ?
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!