Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble linking my USB-6009 to matlab.

Solved!
Go to solution

 

I an having trouble to make my version of Matlab recognise the USB-6009

 

My configuration
Windows 7 enterprise x64
Matlab r2011b x64 with daq toolbox


When I try to launch the interactive session  I get the following error message:
>>session=daq.createSession('ni')
>>"The vendor 'ni' is not known. Use 'daq.getVendors()' for a list of vendors.


Next step:
>> daq.getVendors()
>>Data acquisition vendor 'National Instruments':

            ID: 'ni'
      FullName: 'National Instruments'
AdaptorVersion: '3.0 (R2011b)'
 DriverVersion: 'unknown'
 IsOperational: false
Warning: Diagnostic Information from vendor: NI: There was a driver error while
loading the MEX file to communicate with National Instruments hardware.
It is possible that the NI-DAQmx driver is not installed or is older than
the required minimum version of '9.1'.
Additional information:
'Invalid MEX-file 'C:\Program Files\MATLAB\R2011b\toolbox\daq\daq\+daq\+ni\private\mexNIDAQmx.mexw64': The specified module could not
be found.'


I used dependency walker and found missing DLLs



My troubleshooting steps:

  1. Uninstall and re-install USB6009 with the latest driver and do all updates
  2. Use dependency walker on Matlab

These DLL seem to be missing
NICAIU.DLL
API-MS-WIN-APPMODEL-RUNTIME-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL
API-MS-WIN-SHCORE-SCALING-L1-1-1.DLL
DCOMP.DLL

My preliminary conclusion is that there is a problem with the driver installation. Could you advise me which one could work better?

 

I am out of ideas.

 

Best regards.

0 Kudos
Message 1 of 5
(7,268 Views)
What is the exact driver and version you installed? The DAQmx driver also installs Measurement and Automation Explorer on your desktop. Does that detect the 6009?
0 Kudos
Message 2 of 5
(7,261 Views)

I installed the NIDAQ MXBASE 15.0 driver and updates.

I forgot to mention that I checked and the device seemed to be recognized although the interface seemed a bit different from our XP computers

 

Does this help?

 

 

ni_recognised.png

0 Kudos
Message 3 of 5
(7,254 Views)
Solution
Accepted by topic author Sabria
You installed the wrong driver. The base driver is primarily for Linux and/or the Mac. You need the full version of DAQmx.

http://www.ni.com/download/ni-daqmx-15.1.1/5665/en/
0 Kudos
Message 4 of 5
(7,247 Views)

Super noob mistake but it is now recognized. Thank you for your fast support!

 

0 Kudos
Message 5 of 5
(7,237 Views)