MATLAB Answers

1

Failed to load device plug-in

Asked by haryana thomas on 27 Jun 2018
Latest activity Commented on by Pirmin Boch on 15 Aug 2018 at 14:54

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 Comments

What MATLAB version are you running? What version of NI-DAQmx is installed on the machine?

I'm running the r2018a matlab version and the latest NI-DAQmx version(18.0)

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.

Sign in to comment.

4 Answers

Answer by Nirav Sharda on 2 Jul 2018
Edited by Nirav Sharda on 2 Jul 2018

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

http://www.ni.com/download/ni-daqmx-17.1/6836/en/

3. Reboot computer

  3 Comments

The reason I upgraded to the 18 version was because I thought the 17.1 version of NI-DAQmx was the not compatible with r2018. But as it turns out, the version of NI-DAQmx isn't what's causing the problem.

I followed these instructions, and am still getting the same issue. Occasionally, it works but I don't believe I'm doing anything different.

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.

Sign in to comment.


Answer by Thomas Richner on 30 Jul 2018 at 18:36

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.

  0 Comments

Sign in to comment.


Answer by Pirmin Boch on 15 Aug 2018 at 7:16

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?

  0 Comments

Sign in to comment.


Answer by Akihiko Watanabe on 15 Aug 2018 at 12:12

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 Comment

These countermeasures unfortunately do not have any positive effect on my system.

Sign in to comment.