Borrar filtros
Borrar filtros

Wait for function to finish executing

24 visualizaciones (últimos 30 días)
Erik Vabo Vatsvaag
Erik Vabo Vatsvaag el 25 de Jun. de 2020
Comentada: Erik Vabo Vatsvaag el 29 de Jun. de 2020
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 comentarios
Adam Danz
Adam Danz el 25 de Jun. de 2020
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.
Erik Vabo Vatsvaag
Erik Vabo Vatsvaag el 29 de Jun. de 2020
Thank you!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by