DataRequired Event
(Not recommended) Notify when additional data is required for output on continuous generation
This session object function is not recommended. Use DataAcquisition
object functions instead. See Version History.
Syntax
Description
lh = addlistener(
creates a listener for the session,'DataRequired',callbackfct);DataRequired event. When more data is
required, the callback is executed. The callback is typically used to queue more
data to the device. The callback can be any MATLAB® function with the (src,event) signature.
Tips
Frequency is controlled by
NotifyWhenScansQueuedBelow.
lh = addlistener(
creates a listener for the session,'DataRequired',@(src,event)
expr);DataRequired event and fires an
anonymous function. The anonymous function requires the specified input arguments
and executes the operation specified in the expression expr.
Anonymous functions provide a quick means of creating simple functions without
storing your function in a separate file. For more information see Anonymous
Functions.
The callback has two required parameters: src and
event. src is the session object for the
listener and event is a daq.DataRequiredInfo
object.