How to call a DLL sub-function in Simulink EML suitable for use in accelerated models & generated code
I think the Summary says it all.
But please note that other sub-functions of the same DLL will be called by other EML instances in the same model (as the DLL is intended to be used as a shared/common dataset to overcome Simulink problems with passing large datasets over model reference boundaries and accelerated code generation failures).
Also I have, working perfectly well, developed mex and s-function (and tlc files) suitable for calling the DLL’s sub-functions outside of the EML. However, the model will flow better if I can do it from EML too.
And yes I know for accelerated use I can use "coder.extrinsic", but I believe that this does not work for generated code (unless you tell me I’m wrong)I think the Summary says it all.
But please note that other sub-functions of the same DLL will be called by other EML instances in the same model (as the DLL is intended to be used as a shared/common dataset to overcome Simulink problems with passing large datasets over model reference boundaries and accelerated code generation failures).
Also I have, working perfectly well, developed mex and s-function (and tlc files) suitable for calling the DLL’s sub-functions outside of the EML. However, the model will flow better if I can do it from EML too.
And yes I know for accelerated use I can use "coder.extrinsic", but I believe that this does not work for generated code (unless you tell me I’m wrong) I think the Summary says it all.
But please note that other sub-functions of the same DLL will be called by other EML instances in the same model (as the DLL is intended to be used as a shared/common dataset to overcome Simulink problems with passing large datasets over model reference boundaries and accelerated code generation failures).
Also I have, working perfectly well, developed mex and s-function (and tlc files) suitable for calling the DLL’s sub-functions outside of the EML. However, the model will flow better if I can do it from EML too.
And yes I know for accelerated use I can use "coder.extrinsic", but I believe that this does not work for generated code (unless you tell me I’m wrong) simulink, matlab function MATLAB Answers — New Questions