Skip to Main Content Skip to Search
Product Documentation

TimerFcn - Specify callback function to execute when predefined period passes

Description

You configure TimerFcn to execute a callback function when a timer event occurs. A timer event occurs when the time specified by the TimerPeriod property passes. Time is measured relative to when the object is connected to the instrument with fopen.

If the RecordStatus property value is on, and a timer event occurs, the record file records this information:

Some timer events might not be processed if your system is significantly slowed or if the TimerPeriod value is too small.

To learn how to create a callback function, refer to Creating and Executing Callback Functions.

Characteristics

Usage

Any instrument object

Read only

Never

Data type

Callback function

Values

The default value is an empty string.

See Also

Functions

fopen, record

Properties

RecordStatus, TimerPeriod

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS