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

6 visualizaciones (últimos 30 días)
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

Respuestas (1)

Pratyay Pande
Pratyay Pande el 1 de Sept. de 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 comentario
Mauricio Bassallo
Mauricio Bassallo el 22 de Sept. de 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,

Iniciar sesión para comentar.

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by