Is it possible to interrupt timer callbacks in MATLAB 7.14 (R2012a)?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I would like to know if timer callbacks are interruptible and in which cases MATLAB functions are interruptible.
Respuesta aceptada
MathWorks Support Team
el 18 de Oct. de 2013
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!