Why Does the MEX-File I Created with the Math Interface Toolkit Appear to Hang The MathWorks, Inc. MATLAB® Software? Primary Software: LabVIEW Development Systems>>Full Development SystemPrimary Software Version: 7.1 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: I created a MEX-file using the LabVIEW Math Interface Toolkit. When I call the MEX-file from The MathWorks, Inc. MATLAB® software, it appears to execute but the MATLAB software hangs. Why is this happening and how can I correct it? Solution: You must enable the Show front panel when called option for the VI before you use the Math Interface Toolkit to convert the VI into a MEX-file. You also can create the VI so the VI dynamically calls the front panel. When you call the MEX-file in the MATLAB software, the MEX-file references the .dll the Math Interface Toolkit creates. If you do not enable the Show front panel when called option for the VI you use to create the .dll, the .dll runs in the background, but there is no way to access it. If the VI contains a loop that requires user input to exit, the MATLAB software appears to hang.Complete the following steps to enable the Show front panel when called option.
MATLAB® is a registered trademark of The MathWorks, Inc. Related Links: Attachments:
Report Date: 01/20/2004 Last Updated: 09/05/2007 Document ID: 35JGPQ2P |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

