Data Acquisition Toolbox | ![]() ![]() |
Events and Callbacks
You can enhance the power and flexibility of your analog input application by utilizing events. An event occurs at a particular time after a condition is met and might result in one or more callbacks.
While the analog input object is running, you can use events to display a message, display data, analyze data, and so on. Callbacks are controlled through callback properties and callback functions. All event types have an associated callback property. Callback functions are M-file functions that you construct to suit your specific data acquisition needs.
You execute a callback when a particular event occurs by specifying the name of the M-file callback function as the value for the associated callback property. Note that daqcallback
is the default value for some callback properties.
![]() | Device-Specific Hardware Triggers | Event Types | ![]() |