Specify callback function to execute when data is missed
Note: You cannot use the legacy interface on 64-bit MATLAB®. See About the Session-Based Interface to acquire and generate data on a 64-bit MATLAB.
A data missed event is generated immediately after acquired
data is missed. This event executes the callback function specified
DataMissedFcn. The default value for
which displays the event type and the device object name.
In most cases, data is missed because:
The engine cannot keep up with the rate of acquisition.
The driver wrote new data into the hardware's FIFO
buffer before the previously acquired data was read. You can usually
avoid this problem by increasing the size of the memory block with
Data missed event information is stored in the
EventLog property. The
values are given below.
Data Field Value
The absolute time (as a
The acquired sample number when the event occurred.
When a data missed event occurs, the analog input object is automatically stopped.
AI, common to all channels
Read-only when running
The default value is