Code generation from Simulink file vxworks_UDP_target
3 次查看(过去 30 天)
显示 更早的评论
I am using Matlab 2013a, with Microsoft Visual C++ 2008 installed. The mex -setup is done without errors. I was trying to generate C code from a simulink file, vxworks_UDP_target.slx (which is a demo in matlab 2013a). The xmakefilesetup is all correct(because I can generate code for other simulink files). It gives me error as: Error calling generated SFunction, vxworks_UDP_target_sfun. Invalid MEX-file 'C:\Users\Joy\Documents\MATLAB\vxworks_UDP_target_sfun.mexw64': The specified module could not be found. Then, I looked into depends to check which .dll s cannot be loaded. It shows that the system cannot find LIBMX.dll, LIBMEX.dll, LIBFIXEDPOINT.dll, LIBUT.dll, LIBMWMATHUTIL.dll, LIBEMLRT.dll and MSVCR90.dll. I have checked that except the last dll, all can be found under matlab/bin/win64 folder. I was wondering what leads to this error and how to solve them.
Thanks in advance!
1 个评论
Kaustubha Govind
2013-8-16
Could you try deleting the file C:\Users\Joy\Documents\MATLAB\vxworks_UDP_target_sfun.mexw64 and run your model again? That MEX-file appears to have been automatically generated from the Stateflow chart in the model, and should get re-generated. (I suspect that the missing LIBMX.DLL, etc are a false alarm, and that it might be some compiler runtime libraries that have gone missing since the last time the MEX-file was generated.)
回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!