How I could run an application without pausing the pushbutton results

조회 수: 1 (최근 30일)
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

채택된 답변

Walter Roberson
Walter Roberson 2021년 2월 5일
drawnow() before system()

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by