キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

LABVIEW MEX FILE-Error

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.

0 件の賞賛
メッセージ1/16
6,681件の閲覧回数

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,

Fawad Nisar
Applications Engineer
National Instruments UK & Ireland
0 件の賞賛
メッセージ2/16
6,654件の閲覧回数

Thankyou very much for your attention.

 

Here is the vi in question,  MEX'd with default options.

0 件の賞賛
メッセージ3/16
6,652件の閲覧回数

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,

Fawad Nisar
Applications Engineer
National Instruments UK & Ireland
0 件の賞賛
メッセージ4/16
6,634件の閲覧回数

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.

0 件の賞賛
メッセージ5/16
6,631件の閲覧回数
Oh and thanks for your attention!  Missed the edit window to add it into the above.
0 件の賞賛
メッセージ6/16
6,627件の閲覧回数

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,

Fawad Nisar
Applications Engineer
National Instruments UK & Ireland
メッセージ7/16
6,612件の閲覧回数
Aaah - exactly the answer I was looking for - thanks for your patience.
0 件の賞賛
メッセージ8/16
6,607件の閲覧回数
Hi, I'm trying to run the NI-DAQmx Tools with Matlab R2009b to connect to the USB-6251 BNC analog to digital converter. I also found the same error as artaxerxes. Does that mean that NI-DAQmx Tools are not compatible with Matlab R2009b? The alternative is to purchase Matlab's Data Acquisition Toolbox, but it seems that it's not quite as extensive as NI-DAQmx Tools.
0 件の賞賛
メッセージ9/16
6,206件の閲覧回数
Your MATLAB licences probably allows for you to regress to 2008 et cetera, phone 'em and ask.  You can install them side by side.
0 件の賞賛
メッセージ10/16
6,185件の閲覧回数