How to Solve: Embedded MATLAB Interface Error: Error calling generated SFunction, elec_kers_sfun

Hello.
Embedded MATLAB Interface Error: Error calling generated SFunction, elec_kers_sfun.
I open the kinetic energy recovery system model that I find in Matlab, and then the above error exists.
How can I solve it? Thanks
Best regards, Tommy Lee

6 Comments

Could you try deleting elec_kers_sfun.mexa64 (or some platform-specific extension start with mex) and the 'slprj' directory and rerun the model? Alternatively, you can rename the model with different name and try running it. I am wondering if there is something with the auto-generated MEX-file elec_kers_sfun that is on your path.
I have try both method that you suggested, the problem is still exist. The error message is still exist when I run the program. Could you please give other suggestions to solve this problem? Thank you very much.
What if you disable the Enable debugging/animation option on the Simulation Target pane of the Configuration Parameters window and try?
Unfortunately, there is nothing change when I disable the Enable/debugging/animation option. The error message "Embedded MATLAB Interface Error: Error calling generated SFunction, ele_kers_sfun" still exist when I run the program.
Everytime when I run the program, the file elec_kers_sfun.mexa64 will exist. And the elec_kers_sfun.mexa64 is not allow to open. When I click open, the error message: Error using ==> open at 159. Can't edit the MEX-file. Could anyone please tell me how can I run the program?
Tommy: Could you try reporting this to MathWorks Tech Support and see if this is a known issue? Thanks!

Sign in to comment.

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products

Tags

Asked:

on 6 Mar 2013

Community Treasure Hunt

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

Start Hunting!