What is your driver version? This error is thrown because the driver version used is outdated. Try to update the driver:
1) Through Hardware Support Package a) Uninstall any of the NI DAQ drivers already present on your machine. b) Install the NI DAQmx drivers by installing NI DAQ support package in MATLAB.
Note: Make sure that the driver being installed is the supported version of driver recommended for the release of MATLAB being used. For example, for the current release, supported driver version can be obtained from: https://www.mathworks.com/hardware-support/nidaqmx.html