Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
5 rating:
 1.80 out of 5     Rate this Document

Error When Calling a MEX File Created With the Math Interface Toolkit

Primary Software: LabVIEW Development Systems>>Full Development System
Primary Software Version: N/A
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Toolkits>>Math Interface Toolkit

Problem:
When installing the Math Interface Toolkit 1.0 (or 1.0.1, which has support for XMath) for LabVIEW 7.1 I can build the MEX files and corresponding DLLs without problem. However, I get errors when trying to call the MEX files from The MathWorks, Inc. MATLAB® software including:

error: "One or more output arguments not assigned during call."

How do I get rid of this error?

Solution:
Upon installation of the Math Interface Toolkit (MIT), part of LabVIEW's Application Builder is corrupted, which is used to create the DLLs. Uninstalling and reinstalling LabVIEW will not correct the problem since reinstallation of MIT would only recreate the problem. To resolve the issue, you will need to Repair LabVIEW, which replaces files that have been deleted or corrupted. To repair LabVIEW, go to Add/Remove Programs»National Instruments Software»Change»LabVIEW 7.1 and choose Repair.

Note: This issue arises only after previously installing MIT for LabVIEW 7.0.

MATLAB® is a registered trademark of The MathWorks, Inc. Other product and company names listed are trademarks and trade names of their respective companies.

Related Links:
Developer Zone Tutorial: Calling LabVIEW VIs from The MathWorks, Inc. MATLAB® Environment
Developer Zone Tutorial: Math Interface Toolkit Video Demonstration
KnowledgeBase 35JGPQ2P: Why Does the MEX-File I Created with the Math Interface Toolkit Appear to Hang The MathWorks, Inc. MATLAB® software?
KnowledgeBase 38P946HY: Why does the MIT RTE not install on my deployment machine even though I have LabVIEW 7 RTE installed.
Drivers and Updates: LabVIEW Math Interface Toolkit Version for Windows 2000/XP--MATRIXx

Attachments:





Report Date: 04/29/2004
Last Updated: 07/28/2007
Document ID: 38S9QQHB

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit