update the plot in App designer without double clicking on the plot

6 vues (au cours des 30 derniers jours)
Mauricio Bassallo
Mauricio Bassallo le 24 Août 2021
Hi,
I am plotting a P-H diagram in app Designer, using live data from a simulink model. The code is working as I expected (please, see the image of the code used in App designer for the plotting). However, during the simulation, the plot does not update by itself. I have to make a doule click on the plot every time I want to update the plot. I do not know why? Any suggestion or comment in this regard is welcome, because I am beginner in matlab and app designer.
Kind Regards,
Mauricio

Réponses (1)

Pratyay Pande
Pratyay Pande le 1 Sep 2021
You can try using the timer as a workaround to the issue you are facing. More information on how to use a timer can be found in the following link:
You can use this timer to call the function to plot your data at an interval of your choice.
  1 commentaire
Mauricio Bassallo
Mauricio Bassallo le 22 Sep 2021
Hi @Pratyay Pande, thanks for your answer and sorry for my delay in response.
I just use the timer object in my App Designer code to call the function to plot my data and it works as I wanted.
As a reference, I used the example given in the following link: https://www.mathworks.com/help/matlab/creating_guis/wind-speed-gui-in-app-designer.html
Thanks as well for your link!
Regards,

Connectez-vous pour commenter.

Catégories

En savoir plus sur Develop Apps Using App Designer 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!

Translated by