data acquisition toolbox: nidaq adaptors problem (NI 9213)

Dear all, I am trying to use the data acquisition toolbox in Matlab with the NI Hi-speed USB carrier (NI USB-9162). The device succeeded in the tests of Measurements & Automation explorer. However, when I define the device with the classical data acquisition toolbox function ("AI=analoginput('nidaq','Dev1')"), I get an error saying that no 'nidaq adaptors are installed'. It seems that only the winsound adaptor is installed when I type "daqhwinfo". >> daqhwinfo ans =
ToolboxName: 'Data Acquisition Toolbox'
ToolboxVersion: '2.17 (R2010b)'
MATLABVersion: '7.11 (R2010b)'
InstalledAdaptors: {'winsound'}
Can someone tell me how I can get the nidaq adaptor? I am working with the following versions: -Matlab 2010b Version 7.11 -Data acquisition toolbox 2.17 -NI-DAQmx 9.4 Thank you for you help!

1 件のコメント

Timothy
Timothy 2012 年 12 月 7 日
編集済み: Timothy 2012 年 12 月 7 日
If your MATLAB installation is 64-bit, you must use the Session-base Data Acquisition Toolbox. To check for your hardware, try:
>> d = daq.getDevices

サインインしてコメントする。

回答 (2 件)

Rob Graessle
Rob Graessle 2011 年 10 月 28 日

0 投票

Have you tried registering the NIDAQ adaptor DLL? Execute the following commands in MATLAB, making sure you're logged into Windows as an administrator:
cd(matlabroot);
cd toolbox\daq\daq\private
daqregister('mwnidaq.dll')

1 件のコメント

mado
mado 2013 年 7 月 31 日
I have the same problem , any help ?

サインインしてコメントする。

Steven
Steven 2012 年 6 月 25 日

0 投票

I have the same problem. I tried what Rob suggested but I still get the following answer:
Unable to load adaptor: E:\Program Files\MATLAB\R2012a\toolbox\daq\daq\private\mwnidaq.dll. Driver files or DLL for the specified adaptor could not be found or are not installed.
Even though the file is definitely there. I have had this problem in the past because I end up doing many installs as an instructor for a class, and when I finally get past the error it is never clear why. I've tried alterning the install order of LabView, Matlab, and n-daqmx. I've tried different version combinations. I see all kind of answers to this question, and none of them work reliably.

2 件のコメント

Walter Roberson
Walter Roberson 2012 年 6 月 25 日
Steven, are you trying to do this for 32 bit MATLAB or 64 bit MATLAB ?
YuJaung
YuJaung 2013 年 4 月 23 日
I have exact same problem with Steven. 'mwnidaq.dll' file exists on that directory but the MATLAB said it's unable to load adaptor (adaptor is not installed). It happend after I upgraded version to 2012b (from 2012a) and I deleted 2012a version. I use 32 bit MATLAB. Is there anyone can figure that out?

サインインしてコメントする。

タグ

質問済み:

2011 年 10 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by