Clear Filters
Clear Filters

Updating Edit Field Text Through Runtime of Code in App Designer

8 views (last 30 days)
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.

Accepted Answer

Voss
Voss on 28 Feb 2023
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...';

More Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!