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)
Show older comments
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
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.
0 Comments
More Answers (0)
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!