필터 지우기
필터 지우기

Timer deletion Problem while closing an app in app designer

조회 수: 1 (최근 30일)
Hello all
I have created an app with a button using app designer, which on button click will create a timer. This timer will invoke a function after specified delay.However when i close the app ,MATLAB is automatically deleting the running timer object.How can i run the timer even after closing the app?
Kindly help.Thanks in advance
function buttonclick_callback()
delay_seconds=10000;
tmr = timer('Name','delay_timer','TimerFcn',@(~,~)upload_status,'StartDelay',delay_seconds);
start(tmr)
end

답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by