How do I display "Busy" like that in MATLAB when simulation is running in GUI?
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sush Gautam
le 19 Juil 2022
Commenté : Walter Roberson
le 20 Juil 2022
How do I display "Busy" like that in MATLAB when simulation is running? I need to display "BUSY" when my simulation is running in GUI and when the simulation stopped, it should show "DONE" using guide.
0 commentaires
Réponse acceptée
Bruno Luong
le 19 Juil 2022
Modifié(e) : Bruno Luong
le 19 Juil 2022
Create a static text somewhere i the GUI and set the string to "busy" before runing simumation tjen "done" once finished.
You can also set the figure 'pointer' property to 'watch' then 'arrow'.
1 commentaire
Walter Roberson
le 20 Juil 2022
Note: I suggest using an onCleanup() to ensure that you remove the busy status if the activity is stopped (whether by user activity or by crash.)
Plus de réponses (1)
Walter Roberson
le 19 Juil 2022
Have you considered using waitbar()? (You are not required to update the estimated fraction complete)
waitbar() also has an alternative way of drawing the bar so that it is more like a "barber pole" rather than fraction complete. At the moment I do not recall the configuration method... I think it involves Java properties.
0 commentaires
Voir également
Catégories
En savoir plus sur Dialog Boxes dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!