Why do I receive a warning about indexing a scalar function handle when using Data Acquistion Toolbox 2.6 (R14SP2)?

I am using the Data Acquisition Toolbox to create and configure a device object for acquisition. Upon issuing a command to set the property of my device object, I receive the following warning:
Warning: To support parenthesis notation for invocation, "indexing" a scalar
function handle by ":" will continue to work in R14, but may be illegal or may
work differently in R15. To prepare for R15, and to avoid this warning,
use cell arrays of function handles instead of arrays. For more information,
type 'help function_handle' and see the section at the end entitled
Note on Backward Compatibility.
In daq\private\privateUDDToMATLAB>localIsHandle at 92
In daq\private\privateUDDToMATLAB>localUDDToMATLAB at 50
In daq\private\privateUDDToMATLAB at 42
In daq\private\privateUDDToMATLAB at 36
In daqgate at 21
In daqdevice.get at 73
In daqdevice.set at 87
In <myFunction> at <myLineNumber>

 Accepted Answer

This issue has been fixed in Data Acquisition Toolbox 2.7 (R14SP3). For previous releases, please read below for any possible workarounds:
This warning is a bug in the Data Acquisiton Toolbox in the way that the class of function callbacks is interpretted. This warning should not occur, and is harmless. You should be able to safely supress this warning using the WARNING function.
For more information on suppressing warnings, issue the following command at the MATLAB command prompt:
doc warning

More Answers (0)

Categories

Find more on Configure Simulation Conditions in Help Center and File Exchange

Products

Release

R14SP2

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!