Problem with timers in a GUI
조회 수: 3 (최근 30일)
이전 댓글 표시
I have a GUI in which I create and start a bunch of timers during the startupFcn. Frequently I get the following error:
Error while evaluating TimerFcn for timer 'statusUpdateTimer'
Trying to load file "<filename>.mlapp" while it is being loaded.
It seems to happen more frequently if the timer is started at the end of the constructor, but I've also seen it at other times (ie not just during construction) on timer callbacks when other GUI operations are running.
What does the error mean and how can I eliminate it?
댓글 수: 5
Adam Danz
2020년 9월 30일
Usually errors that occur within AppDesigner indicate where the error is happening and this is an important bit of info. I had a feeling the timer fcn doing something too early within the initialization of the app. Sounds like you solved it with the start delay.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!