What is causing invalidMEXFile error?

2 views (last 30 days)
Lauren
Lauren on 22 Mar 2013
I am using the Data Acquisition Toolbox in Matlab R2012b. I have a NIUSB6008 which is not being recognized by Matlab. When using the daq.getVendors()command, I get the following error message:
daq.getVendors()
ans =
Data acquisition vendor 'National Instruments':
ID: 'ni'
FullName: 'National Instruments'
AdaptorVersion: '3.2 (R2012b)'
DriverVersion: 'unknown'
IsOperational: false
Warning: Diagnostic Information from vendor: NI: The required MEX file to communicate with National Instruments hardware could not be loaded. The attempt gave the Error ID of 'MATLAB:invalidMEXFile' and the message 'Invalid MEX-file 'C:\Program Files\MATLAB\R2012b\toolbox\daq\daq\+daq\+ni\private\mexNIDAQmx.mexw64': A dynamic link library (DLL) initialization routine failed.'.
I am not sure what is causing this error and would appreciate any guidance. Thank you!

Answers (1)

Fabien
Fabien on 5 Jul 2013
Hi Lauren,
I got exactly the same error than you when trying to use a NIUSB6008 with the Data Acquisition Toolbox.
daq.getVendors()
ans =
Data acquisition vendor 'National Instruments':
ID: 'ni'
FullName: 'National Instruments'
AdaptorVersion: '3.3 (R2013a)'
DriverVersion: 'unknown'
IsOperational: false
Warning: Diagnostic Information from vendor: NI: The required MEX file to communicate with National Instruments hardware could not be loaded. The attempt gave the Error ID of 'MATLAB:invalidMEXFile' and the message 'Invalid MEX-file 'C:\Program Files\MATLAB\R2013a\toolbox\daq\daq\+daq\+ni\private\mexNIDAQmx.mexw64': Le module spécifié est introuvable.'.
Did you get any answers/solutions since the time you posted your message?
Thanks in advance

Community Treasure Hunt

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

Start Hunting!