Effacer les filtres
Effacer les filtres

How I could run an application without pausing the pushbutton results

1 vue (au cours des 30 derniers jours)
zbingos
zbingos le 5 Fév 2021
Commenté : zbingos le 6 Fév 2021
My problem is that I am trying to create some actions inside a pushbutton. One of them is to run a file (....mxd) with the correct application (ArcGis) BUT the changing of colours does not run unless I will close the sosftware which I wanted to open(ArcMap).Do you know how I can bypass this problem. To recap I want first to run the changing of colours and then to open the software. Somehow the execution of the software is in ''pending mode'' insdie the function of pushbutton and does not release the results to texts 4-7.
I2TBP_Daily_Arcmap_New = char(strcat(Daily,{'\'},{ImageName},{'\'},{ImageName},{'.mxd'})); % This is a file from a GIS application (ArcMAp)
ArcMap_Execute = char(strcat({'"'},I2TBP_Daily_Arcmap_New,{'"'},{' x -o'}));
set( handles.text4, 'BackgroundColor', 'green' );
set( handles.text5, 'BackgroundColor', 'green' );
set( handles.text6, 'BackgroundColor', 'green' );
set( handles.text7, 'BackgroundColor', 'green' );
[status,cmdout] = system(ArcMap_Execute);
end
end

Réponse acceptée

Walter Roberson
Walter Roberson le 5 Fév 2021
drawnow() before system()

Plus de réponses (0)

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by