Updating Edit Field Text Through Runtime of Code in App Designer
조회 수: 3 (최근 30일)
이전 댓글 표시
I have created an example app where it plots three graphs onto the same UIAxes in App Designer. In this app is a edit field text where it is supposed to output mutliple responses while it's following the steps to creating the final plot. When the button is clicked on, it should show in the edit field, 'Grabbing Data'; followed by 'Plotting Data' once the plots have been created. I only get the final response at the end in the edit field which is 'Task Complete' after all the steps have been completed.
How do I show the first two responses in the edit field as well. The response should switch over to the next one once it completed the prior steps and should be displayed for enough time for the user of the program to be able to read the response. I am currently using version 2019a. Thank you in advance.
댓글 수: 0
채택된 답변
Voss
2023년 2월 28일
Notice the pause(1) after app.EditField.Value = 'Grabbing Data';. That pauses execution for 1 second, which is "enough time for the user of the program to be able to read the response".
Add another pause(1) after app.EditField.Value = 'Plotting Data...';
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File 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!