Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

TimerFcn

Callback function file to execute when predefined period passes

Description

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.

Characteristics

Access

Read/write

Applies to

opcda

Data type

character vector, function handle, or cell array

Values

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

See Also

Functions

connect, disconnect

Properties

TimerPeriod

Was this topic helpful?