Code generation from Simulink file vxworks_UDP_target

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 Comment

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.)

Sign in to comment.

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products

Asked:

on 5 Aug 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!