MATLAB Programming

MATLAB Programming MATLAB Programming

cda.psych.uiuc.edu
from cda.psych.uiuc.edu More from this publisher
23.06.2015 Views

9 Classes and Objects 9-76

10 Scheduling Program Execution with Timers MATLAB includes a timer object that you can use to schedule the execution of MATLAB commands. This chapter describes how you can create timer objects, start a timer running, and specify the processing that you want performed when a timer fires. A timer is said to fire when the amount of time specified by the timer object elapses and the timer object executes the commands you specify. Using a MATLAB Timer Object (p. 10-3) Creating Timer Objects (p. 10-5) Working with Timer Object Properties (p. 10-7) Starting and Stopping Timers (p. 10-10) Creating and Executing Callback Functions (p. 10-14) Timer Object Execution Modes (p. 10-19) Step-by-step procedure for using a timer object with a simple example Using the timer function to create a timer object Setting timer object properties and retrieving the values of timer object properties Using the start or startat function to start timer objects; using the stop function to stop them, and blocking the command line Creating a callback function and specifying it as the value of a timer object callback property Using the ExecutionMode property to control when a timer object executes

9 Classes and Objects<br />

9-76

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

Saved successfully!

Ooh no, something went wrong!