Wait for function to finish executing

Hello,
I am programming an app i App designer. This app should be able to run different functions with different inputs. I have made the inputs as Edit fields and the different functions executes when pressing a button. Now I can press a button and the function is executed and I can change values and press the buttons however I like and all these actions are queued. I want the program to "freeze" so I have to wait for a function to finish before I can change values and execute new functions. I read that if using waitfor callbacks can still run.

댓글 수: 3

Walter Roberson
Walter Roberson 2020년 6월 25일
편집: Walter Roberson 2020년 6월 25일
Adam Danz
Adam Danz 2020년 6월 25일
In addition to Walter's suggestion, if the button is the only thing that triggers the callback function, you can disable the button immediately, at the top of the callback function, and then enable it again when the callback function completes.
Thank you!

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2020년 6월 25일

댓글:

2020년 6월 29일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by