Data Acquisition Toolbox Release Notes |
Upgrading from an Earlier Release
Note For issues involved in upgrading from the Data Acquisition Toolbox 1.0.1 to the Data Acquisition Toolbox 2.1, see Upgrading from an Earlier Release in the Data Acquistion Toolbox 2.0 Release Notes. |
Events, Callbacks, and Function Handles
Action properties and action functions are now referred to as callback properties and callback functions. This new terminology is reflected in new names for the associated properties and functions. The general rule for the name changes is to change "Action" to "Fcn" for properties, and "action" to "callback" for functions. For example, TimerAction
has been renamed TimerFcn
, and daqaction
has been renamed daqcallback
.
Additionally, if you want to automatically pass the object and event information to the callback function, then you must specify the function as either a function handle or as a cell array. Note that you can also specify the callback function as a string. In this case, the callback is evaluated in the MATLAB workspace and no requirements are made on the function's input arguments.
Data Acquisition Toolbox 2.1 Release Notes | Known Software and Documentation Problems |