Data Acquisition Toolbox    
Timeout

Specify an additional waiting time to extract or queue data

Description

The Timeout value (in seconds) is added to the time required to extract data from the engine or queue data to the engine. Because data is extracted with the getdata function, and queued with the putdata function, Timeout is associated only with these two "blocking" functions.

If the requested data is not extracted or queued after waiting the required time, then a timeout condition occurs and control is immediately returned to MATLAB. A timeout is one of the conditions for stopping an acquisition. When a timeout occurs, the callback function specified by RuntimeErrorFcn is called.

Timeout is not associated with hardware timeout conditions. Possible hardware timeout conditions include

To check for hardware timeouts, you might need to poll the appropriate property value.

Characteristics

Usage
AI, AO, Common
Access
Read/write
Data type
Double
Read-only when running
Yes

Values

The default value is one second.

See Also

Functions

getdata, putdata

Properties

RunTimeErrorFcn


  Tag TimerFcn