Updating Edit Field Text Through Runtime of Code in App Designer
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Voss
am 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...';
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!