Why do I receive the following warning when I run my code that uses the Data Acquisition Toolbox?
daqreset
dio = digitalio('nidaq','Dev1');
d0 = addline(dio,0,'out');
d1 = addline(dio,1,'out');
Warning: The device adaptor is not in the expected location.
Expected: C:\Program Files (x86)\MATLAB\R2011b
Actual: C:\Program Files (x86)\MATLAB\R2014b\toolbox\daq\daq\private\mwnidaqmx.dll
An adaptor from the wrong release may be in use. To correct this problem execute:
daqregister('nidaq','unload')
Then exit and restart MATLAB.
When I try to run daqregister('nidaq','unload'), as suggested by the message, I received the following warning:
Warning: Unable to self unregister adaptor. Manually removing from registry
> In daqregister>localDaqRegister at 160
In daqregister>localDaqRegister at 104
In daqregister at 50
Warning: Unable to self unregister adaptor. Manually removing from registry
> In daqregister>localDaqRegister at 160
In daqregister at 50
Best Answer