Can I use the MEX-file generated by the EMLMEX command in an S-function in Simulink 7.4 (R2009b)?

1 view (last 30 days)
I am using the EMLMEX command to generate a MEX-file. Can I use this MEX-file in an S-function block in Simulink 7.4 (R2009b)?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 8 Jan 2010
The ability to use a MEX-file generated by the EMLMEX command in an S-function is unavailable in Simulink 7.4 (R2009b).This is because an S-function MEX-file requires certain callbacks such as mdlInitialize, mdlOutputs, etc. which are not generated by the EMLMEX command.
As a workaround, you may use the Embedded MATLAB block in Simulink for this purpose.

More Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products


Release

R2009b

Community Treasure Hunt

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

Start Hunting!