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.

Working with Timer Object Properties<br />

4 Start the timer object. It displays a message at 1-second intervals.<br />

start(t)<br />

5 Stop the timer object.<br />

stop(t)<br />

6 Delete timer objects after you are done using them.<br />

delete(t)<br />

Viewing a List of All Settable Properties<br />

To view a list of all timer object properties that can have values assigned to<br />

them (in contrast to the read-only properties), use the set function, specifying<br />

the timer object as the only argument.<br />

The display includes the values you can use to set the property if, like the<br />

BusyMode property, the property accepts an enumerated list of values.<br />

t = timer;<br />

set(t)<br />

BusyMode: [ {drop} | queue | error ]<br />

ErrorFcn: string -or- function handle -or- cell array<br />

ExecutionMode: [{singleShot} | fixedSpacing | fixedDelay | fixedRate]<br />

Name<br />

ObjectVisibility: [ {on} | off ]<br />

Period<br />

StartDelay<br />

StartFcn: string -or- function handle -or- cell array<br />

StopFcn: string -or- function handle -or- cell array<br />

Tag<br />

TasksToExecute<br />

TimerFcn: string -or- function handle -or- cell array<br />

UserData<br />

10-9

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

Saved successfully!

Ooh no, something went wrong!