Specify callback function to execute when trigger occurs
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 trigger event is generated immediately after a trigger occurs.
This event executes the callback function specified for
Under most circumstances, the callback function is not guaranteed
to complete execution until sometime after
On for analog input (AI) objects, or
On for analog output (AO) objects.
Trigger event information is stored in the
EventLog property. The
values are given below.
Data Field Value
The absolute time (as a
The acquired (AI) or output (AO) sample number when the event occurred.
The index number for each input channel serving as a trigger source (AI only).
The trigger number.
AI, AO, common to all channels
Read-only when running
The default value is an empty string.