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

조회 수: 6 (최근 30일)
Mauricio Bassallo
Mauricio Bassallo 2021년 8월 24일
댓글: Mauricio Bassallo 2021년 9월 22일
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

답변 (1개)

Pratyay Pande
Pratyay Pande 2021년 9월 1일
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
Mauricio Bassallo
Mauricio Bassallo 2021년 9월 22일
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,

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by