Run code in GUI automatically as soon as it starts
Afficher commentaires plus anciens
Hi.
I have a GUI that contains an infinite loop for Data handling. My plan is to embed it in the Windows scheduled tasks so that it starts automatically every morning at 4 AM. I have created a button to break the loop when necessary.
Because the program will run on an unmonitored PC, I need the code to start automatically when the GUI starts. However, if I put it in the OpeningFcn, the code executes before the GUI becomes visible, so the GUI does not become visible at all (since it's an infinite loop) and so the button to cancel the loop never appears.
Does anyone have an idea for a workaround?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!