Filter löschen
Filter löschen

Uiwait does not work app designer

5 Ansichten (letzte 30 Tage)
gravy
gravy am 24 Feb. 2024
Kommentiert: gravy am 25 Feb. 2024
I have a plot that is drawn by points in a while loop and I want to make a pause button. When I did it using the for loop uiwait worked, but in the while loop it doesn't. What is the problem?
  2 Kommentare
Walter Roberson
Walter Roberson am 24 Feb. 2024
Please show the code.
gravy
gravy am 24 Feb. 2024

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 24 Feb. 2024
if app.VButton.Value == 1 | app.GButton.Value == 1
break
end
You are not testing the state of the pause button. You should have something like
while app.PauseButton.Value
pause(0.00000000001);
drawnow();
end
In two places.
  1 Kommentar
gravy
gravy am 25 Feb. 2024
Thanks for the reply. I have a condition of transition between buttons T V G, not checking the state of the pause button, I tried to do it via uiwait, but it doesn't work for some reason.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Produkte


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by