필터 지우기
필터 지우기

Updating Edit Field Text Through Runtime of Code in App Designer

조회 수: 8 (최근 30일)
Ratanjot
Ratanjot 2023년 2월 28일
답변: Voss 2023년 2월 28일
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.

채택된 답변

Voss
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개)

카테고리

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

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by