Specify callback function to execute when predefined number of samples is acquired for each channel group member
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 samples acquired event is generated immediately after the
number of samples specified by the
is acquired for each channel group member. This event executes the
callback function specified for
The samples acquired event is executed regardless of its waiting time in the queue.
SamplesAcquiredFcn to trigger an event
each time a specified number of samples is acquired. To process samples
at regular time intervals, use the
Samples acquired event information is not stored in the
When the callback function is executed, the second argument is a structure
containing two fields. The
Type field value is
set to the string
'SamplesAcquired', and the
values are given below.
Data Field Value
The absolute time (as a
The acquired sample number when the event occurred.
AI, common to all channels
Read-only when running
The default value is an empty string.