Failed to load device plug-in

조회 수: 55 (최근 30일)
haryana thomas
haryana thomas 2018년 6월 27일
편집: Andrei 2021년 8월 3일
I'm using the data acquisition toolbox and NI hardware to acquire data into MATLAB. I have installed all the latest drivers, toolbox and matlab versions and all my hardware devices are supported except for the cDAQ-9185 chassis. I have no problem creating sessions but I get the plug-in error when I try to add analog input channels. I don't think that the cDAQ-9185 Chassis is the problem because I can add analog output channels and occasionally I'm able to add analog input channels. I don't know what the problem is so any help is much appreciated.
Error: Failed to load device plug-in: 'mwnidaqmxai'. Check that the DAQ Toolbox and NIDAmx drivers are installed properly.
Thanks
  댓글 수: 3
haryana thomas
haryana thomas 2018년 7월 2일
I'm running the r2018a matlab version and the latest NI-DAQmx version(18.0)
Akihiko Watanabe
Akihiko Watanabe 2018년 8월 12일
I have the same issue. I am using "NI USB-6009" ONLY. The Data Acquisition Tool supports this device. And the version of NI-DAQmx is 18.0.
I have tried an following example of Mathworks Website.
openExample('daq/demo_compactdaq_intro')
But following error occurs when "addAnalogInputChannel" function is executed.
Failed to load device plug-in: 'mwnidaqmxai'. Check that the DAQ Toolbox and NIDAQmx drivers are installed properly.
I am still suffering this issue.

댓글을 달려면 로그인하십시오.

채택된 답변

Nirav Sharda
Nirav Sharda 2018년 7월 2일
편집: Nirav Sharda 2018년 7월 2일
R2018a version of MATLAB requires NI-DAQmx 17.1 and you are using a different version. So, use the 17.1.0 version of NI-DAQmx which is supported by MATLAB R2018a by following the below instructions:
1. Uninstall existing NI-DAQmx version
2. Download and install NI-DAQmx 17.1.0
3. Reboot computer
  댓글 수: 4
haryana thomas
haryana thomas 2018년 7월 30일
I have the same problem. I talked to Mathworks support and they said the reason was because my cDAQ-9185 chassis is not supported by Matlab.
Abdul Rahman Samewoi
Abdul Rahman Samewoi 2019년 9월 19일
Hi, what if only analog input or digital input has the problem above? analog output and digital output are okay. I am using R2018a version of MATLAB and NI-DAQmx 17.1. Please advice me.

댓글을 달려면 로그인하십시오.

추가 답변 (8개)

Andrei
Andrei 2018년 8월 30일
편집: Andrei 2019년 1월 30일
To resolve this issue you can upgrade/update to R2018b Update 1.
Please refer to the following bug report for a possible temporary workaround in R2018a. You can also opt in to receive automatic notifications when a fix is available for R2018a.
  댓글 수: 1
Thomas Richner
Thomas Richner 2018년 8월 30일
Yes, please take a look at this bug report. They accurately describe the problem, at least in my case.

댓글을 달려면 로그인하십시오.


Thomas Richner
Thomas Richner 2018년 7월 30일
I get this error when I try to que too large a vector (~ few GB) to the analog out. If I decrease the size of the vector it works fine. So it seems the error code is largely unrelated to the actual cause.

Pirmin Boch
Pirmin Boch 2018년 8월 15일
I have the same problem. Also after I uninstalled NI_DAQmx version 18 and installed NI_DAQmx version 17.1.
I use a NI PXIe 6363 and a NI PXIe 6238 and Matlab 2018a.
Does somebody have a solution for this problem?

Akihiko Watanabe
Akihiko Watanabe 2018년 8월 15일
I found a countermeasure to reduce the occurrence frequency of this issue (NOT a perfect countermeasure). Even after this countermeasure sometimes the same issue occurs, but the occurrence frequency of this issue is very low on my PC.
This countermeasure is for Microsoft Windows only. Refer to following image also.
1. Launch the "System Configuration"
2. Click the Services tab.
3. Sort by manufacturer (Blue Box in the image).
4. Find the service of National Instruments.
5. Originally, the all services of National Instrument are turned on. Turn OFF these services except Red box in the image.
6. Click the OK button on the system configuration.
7. Reboot the OS.
<Image of "System Configuration (Japanese Version) >
  댓글 수: 1
Pirmin Boch
Pirmin Boch 2018년 8월 15일
These countermeasures unfortunately do not have any positive effect on my system.

댓글을 달려면 로그인하십시오.


Chaitanya Jha
Chaitanya Jha 2018년 8월 22일
I am facing the same issue on Windows 10 while using NI USB-6221oem. This device is supported by Matlab. The problem arises when I am trying to add an Input or Output channel. It used to happen once or twice in a day, all other times it used to work perfectly in the last 2 months that I have used this NI device. Recently, in the last couple of days, it started to happen more frequently, but I was able to get rid of this issue by restarting my computer. However, from today, even the restarting the Windows doesn't help.
  댓글 수: 3
Chaitanya Jha
Chaitanya Jha 2018년 8월 24일
sent you a message!
Andrei
Andrei 2018년 8월 30일
Thank you Chaitanya!

댓글을 달려면 로그인하십시오.


Abdul Rahman Samewoi
Abdul Rahman Samewoi 2019년 1월 4일
Have anyone solved this problem? I am facing the same problem using USB 6211 NI-DAQmx version 18.1 , Matlab 2018a and window 10.
I could load analog output and digital output channels but problem to load analog input channels that give : failed to load device plug-in: 'mwnidaqmxai'. check that the daq toolbox and nidaqmx drivers are installed properly.
  댓글 수: 3
Andrei
Andrei 2019년 1월 7일
편집: Andrei 2019년 1월 7일
Abdul, please refer to the bug report mentioned in the following answer; a possible workaround is described, and you can follow the bug report to get notified on when an actual fix is available.
Aleksandr Sidun
Aleksandr Sidun 2019년 5월 23일
See my suggestions below

댓글을 달려면 로그인하십시오.


Aleksandr Sidun
Aleksandr Sidun 2019년 5월 23일
You can try to write commands 'clear all','close all' to free up your RAM. It works in my case.
Also, you can try to reduce the sample size/sampling frequency to reduce the amount of data.

Qi Liu
Qi Liu 2021년 8월 3일
I am also facing the similar issue on Windows 10 while using NI device PCI-6014. The version of my Matlab is R2018b with NI-DAQmx 18.0. (I am sure Matlab can get data from NI device while using NI MAX test panel and Matlab Analog Input Recorder APP). When I want to use simulink to control my NI device, I just load a block from library, and as you see in this picture the device was recognized. Then a tricky problem happened, I found memory is quickly filled even I didn't generate signal.
The Error: Failed to load device plug-in: 'mwnidaqmxai'. Check that the DAQ Toolbox and NIDAmx drivers are installed properly.
I tried using commands 'clear' and 'close all', but it dosen't works. Can anyone give me some advice?
Many thanks
  댓글 수: 1
Andrei
Andrei 2021년 8월 3일
편집: Andrei 2021년 8월 3일
To resolve this issue you can install R2018b Update 1 or use a more recent release (R2019a or later).
Please refer to the following bug report:

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Acquisition Toolbox Supported Hardware에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by