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.
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
We were able to investigate this issue. Please refer to the following bug report for a possible temporary workaround. You can also opt in to receive automatic notifications when a fix is available.
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.
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?
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) >
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.