ai = analoginput('nidaq','Dev1');
I receive the error message,
Error using ==> analoginput.analoginput at 99
Error using ==> analoginput.analoginput>localCreateAnalogInputObject at 191
Failure to find requested data acquisition device: nidaqmx.
Here are the software versions that I'm running:
Matlab R2007a
Data Acquisition Toolbox 2.10
NIDAQmx driver: 9.0.2f0
Using the command,
daqregister('mwnidaqmx')
I receive the error message,
'nidaqmx.dll' not found. Make sure it is on the MATLAB path.
I'm sure that the 'nidaqmx.dll' file exists, and I've tried entering the entire filepath instead of just the filename. I've opened the mwnidaqmx.ini file in a text editor and have seen that the USB-6009 DAQ is listed, along with its properties. Using the command,
daqhwinfo('nidaqmx') or daqhwinfo('nidaq')
gives the following error message:
Error using ==> daqhwinfo at 98
Failure to find requested data acquisition device: nidaqmx.
I've used the daq to successfully collect data using LabView. Any help would be much appreciated. Thanks
Did you ever find a solution to this? I'm having the same problem.
Thanks,
Megan
-Rob
Hi there Rob,
I too have this problem. I have a PC running Windows 7 and I am running MATLAB 2011a from a network licence. We have the Data Aquisition Toolbox ver. 2.18. I have read a few of your posts on this topic and have tried the following:
- Opening Matlab as an Administrator
- Typed daqreset, and then daqregister('nidaq'), (I have also tried to register the sound card, daqregister('winsound')), and the same error message appears:
'nidaq.dll' not found. Make sure it is on the MATLAB path.
- Tried reinstalling the Data Acquisition Toolbox
- Tried reinstalling Matlab 2011a
One other thing. After first installing 2011a, I could not even start a session;
s = daq.createSession('ni')
After contacting support I was advised to set my File Path settings to Default. After doing this, the Data Acquisition Toolbox suddenly became visible and I could use the basic commands. However, now I cannot see any devices, (i.e. using:
daq.getDevices)
Any ideas?
Nick
Can you send the text of the error messages you're getting?
Do you have NI-DAQmx installed? What version?
Can you see your devices in M&A Explorer?
-Rob