User`s guide
Upgrading from an Earlier Release
9-3
Upgrading from an Earlier Release
Note The following issue is involved in upgrading from the Data Acquisition
Toolbox 2.0 to Data Acquisition Toolbox 2.1.
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.
Note The following issues are involved in upgrading from the Data
Acquisition Toolbox 1.0.1 to the Data Acquisition Toolbox 2.1.
Vendor Drivers
If you are not using the latest drivers for your hardware, and you experience
problems with the toolbox, then you should upgrade your drivers:
•For National Instruments hardware, you should use NI-DAQ 6.7.0 (
http://
www.ni.com/nidaq
). Note that you should be able to use NI-DAQ 6.8,
although the toolbox has not been fully tested against this driver version.
•For Agilent Technologies hardware, you should use VXI Plug and Play
Drivers version A.06.04 (
http://www.tm.agilent.com).