Data Acquisition Toolbox | ![]() ![]() |
Specify the M-file callback function to execute whenever a predefined period of time passes
Description
A timer event is generated whenever the time specified by the TimerPeriod
property passes. This event executes the callback function specified for TimerFcn
. Time is measured relative to when the device object starts running.
Some timer events might not be processed if your system is significantly slowed or if the TimerPeriod
value is too small. For example, a common application for timer events is to display data. However, because displaying data is a CPU-intensive task, some of these events can be dropped. To guarantee that events are not dropped, you might want to use the SamplesAcquiredFcn
property (analog input) or the SamplesOutputFcn
property (analog output). For digital I/O objects, timer events are typically used to update and display the state of the device object.
Timer event information is not stored in the EventLog
property.
Characteristics
Usage |
AI, AO, DIO, Common |
Access |
Read/write |
Data type |
String |
Read-only when running |
No |
Values
The default value is an empty string.
Properties
EventLog
, SamplesAcquiredFcn
, SamplesOutputFcn
, TimerPeriod
![]() | Timeout | TimerPeriod | ![]() |