This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Callback function file to execute when predefined period passes


You configure TimerFcn to execute a callback function file when a timer event occurs. A timer event occurs when the time specified by the TimerPeriod property passes. Timer events are only generated when the Status property is set to 'connected'. Timer events will stop being generated when the object's Status is set to 'disconnected', either by a disconnect function call, or when the server shuts down.

Some timer events may not be processed if your system is significantly slowed or if the TimerPeriod value is too small. Timer event information is not stored in the EventLog property.




Applies to


Data type

character vector, function handle, or cell array


The default value is an empty matrix ([]).

See Also