Is it possible to interrupt timer callbacks in MATLAB 7.14 (R2012a)?
조회 수: 2 (최근 30일)
이전 댓글 표시
I would like to know if timer callbacks are interruptible and in which cases MATLAB functions are interruptible.
채택된 답변
MathWorks Support Team
2013년 10월 18일
In contrast to GUI callbacks, which can be made interruptible using DRAWNOW or PAUSE commands, timer callbacks are not interruptible at all.
With regard to common MATLAB functions there are no limitations for interrupts. MATLAB functions can be interrupted between consecutive MATLAB commands. To make critical code sections safe, you would have to use mex files. This would allow to create some kind of semaphore or mutex.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!