Callback function that displays event information for specified event
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 device object.
A variable that captures the event information contained
an example callback function that displays information to the MATLAB Command
Window. For all events, the information includes the event type and
the name of the device object that caused the event to occur. For
events that record the absolute time in
the event time is also displayed. For run-time error events, the error
message is also displayed.
Create the analog input object
ai and call
a trigger event occurs.
ai = analoginput('winsound'); addchannel(ai,1); ai.TriggerRepeat = 3 ai.TriggerFcn = @daqcallback start(ai)
daqcallback as the callback function
to be executed for any event by specifying it as the value for the
associated callback property. For analog input objects,
the default value for the
For analog output objects,
daqcallback is the default
value for the