06-22-2009 11:40 AM
LABVIEW 8.6.1, MATLAB 2009a, Most Recent Math interface Toolkit
I can craft MEX files succesfully, but not execute.
I get the following error attempting to execute
>> ao_based_on_ai_22_matlab(ones(1,100))
Warning: LabVIEW MEX-File Error: Failed to load some MEX-function DLLs installed
by The MathWorks, Inc. MATLAB(R). These DLLs include libmx.dll and libmex.dll.
They should be installed when MATLAB(R) is installed. Make sure they are in the
system's path.
Has anyone else used 2009a and received this error? Is 2009a compatible? 2008a had no such issue.
06-23-2009 10:09 AM
Dear Artaxerxes,
I hope you are doing fine. Thank you for contacting National Instruments. I am currently looking in to it and will get back to you as soon as possible.
Best regards,
06-23-2009 10:18 AM
Thankyou very much for your attention.
Here is the vi in question, MEX'd with default options.
06-25-2009 08:30 AM
Dear Artaxerxes,
Thank you for the code. I can not see where in your code you are calling any thing which has to do with MATLAB 2009a.
Also have you tried reinstalling the MATLAB as the error says "Failed to load some MEX-function DLLs installed by The MathWorks, Inc. MATLAB(R). These DLLs include libmx.dll and libmex.dll. They should be installed when MATLAB(R) is installed"
Best regards,
06-25-2009 08:45 AM
The libmx and libmex files are present and on the path. The Error is generated by LabVIEW searching for them, hence my request for confirmation that 2009a does not break the MIT.
I enclosed the VI so you could replicate all steps with Labview 8.6.1, the MIT and MATLAB 2009a. There are as you note, no direct references to MATLAB within the code.
06-25-2009 08:56 AM
06-25-2009 11:23 AM
Dear Artaxerxes,
The error message you are seeing is the result of mex.dll no longer being supported in MATLAB 2009a despite the presence of the libmex and libmx.dll.
The last known working version is MATLAB 2008b. More information can be found in the release notes for MATLAB 2008b for the support of the mex.dll.
Best regards,
06-25-2009 11:35 AM
01-14-2010 05:18 PM
01-15-2010 03:57 AM