Simulink C2000 linux Error calling generated SFunction, trasf_sfun. Invalid MEX-file
13 views (last 30 days)
Show older comments
Hi, everybody
i'm linux matlab user, i'm working on simulink with C2000's blocksets. When i run in normal mode, without connected board, it shows this message:
c28xdmclib/Ramp Generator/Convert Param To fix-pt with floor rounding mode/Embedded MATLAB Function
MATLAB Function Interface Error: Error calling generated SFunction, trasf_sfun. Invalid MEX-file

segment map object failed, operation denied
I've got code composer studio V5.
Why? please helpe me!!
0 Comments
Answers (1)
Kaustubha Govind
on 7 Oct 2013
During normal mode simulation, Simulink generates a MEX-file from Embedded MATLAB Function blocks for execution. The MEX-file typically has the name modelname_sfun, which is trasf_sfun in your case. You may read the documentation on Invalid MEX-File Error, to understand when this error occurs. My guess is that this model was previously from the same (network?) location from a different machine where the MEX-file was generated. At the time the file was generated, it created dependencies on certain run-time libraries (especially if Microsoft Visual Studio was configured as the MEX-compiler on that machine), which don't exist on your machine. You may try deleting the auto-generated MEX-file from the current directory, so that Simulink is forced to re-generate it, if you like.
0 Comments
See Also
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!