23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Timer Object Execution Modes<br />

Differences Between ExecutionModes<br />

Handling Callback Function Queuing Conflicts<br />

At busy times, in multiple-execution scenarios, the timer may need to add the<br />

timer callback function (TimerFcn) to the <strong>MATLAB</strong> execution queue before<br />

the previously queued execution of the callback function has completed.<br />

You can determine how the timer object handles this scenario by using the<br />

BusyMode property.<br />

If you specify 'drop' as the value of the BusyMode property, the timer object<br />

skips the execution of the timer function callback if the previously scheduled<br />

callback function has not already completed.<br />

If you specify 'queue', the timer object waits until the currently executing<br />

callback function finishes before queuing the next execution of the timer<br />

callback function.<br />

10-21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!