Data Acquisition Toolbox    
TimerAction

Specify the M-file action 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 action function specified for TimerAction. Time is measured relative to when the device object starts running.

Some timer events may 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, since displaying data is a CPU-intensive task, some of these events may be dropped. To guarantee that events are not dropped, you may want to use the SamplesAcquiredAction property (analog input) or the SamplesOutputAction 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.

See Also

Properties

EventLog, SamplesAcquiredAction, SamplesOutputAction, TimerPeriod


 Timeout TimerPeriod