Updating Edit Field Text Through Runtime of Code in App Designer

8 次查看(过去 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.

采纳的回答

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