Button press to continue iteration in appdesigner
    2 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
I am using appdesigner and I have many push buttons inside it and a for loop from 1 to 5 (ii = 1:5)
I want to make the last pushbutton (NextBlockButton) to continue an iteration but since the pushbutton functions are written below and not in the main script, my program is freezing after this button.
This is what i have:
for ii = 1:5
execution of functions..
app.NextBlockButton.Visible = 'on';
                    waitforbuttonpress
                    app.NextBlockButton
                    app.NextBlockButtonPushed
% Create NextBlockButton
            app.NextBlockButton = uibutton(app.uifUIFigure, 'push');
            app.NextBlockButton.ButtonPushedFcn = createCallbackFcn(app, @NextBlockButtonPushed, true);
            app.NextBlockButton.BackgroundColor = [1 1 1];
            app.NextBlockButton.FontName = 'Bodoni MT';
            app.NextBlockButton.FontSize = 18;
            app.NextBlockButton.FontWeight = 'bold';
            app.NextBlockButton.FontColor = [0.4941 0.1843 0.5569];
            app.NextBlockButton.Visible = 'off';
            app.NextBlockButton.Position = [528 19 113 31];
            app.NextBlockButton.Text = 'Next Block >';
0 Commenti
Risposte (1)
  Divya Yerraguntla
    
 il 6 Ago 2019
        Hi,
I found an answer to a similar question. Have a look at this link https://www.mathworks.com/matlabcentral/answers/317916-how-do-i-wait-for-an-appdesigner-pushbutton-press-from-a-script?s_tid=answers_rc1-2_p2_MLT
0 Commenti
Vedere anche
Categorie
				Scopri di più su Desktop in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

