Run code in GUI automatically as soon as it starts
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!