S Function code generation issue
显示 更早的评论
I have a sfunction in the model which is referenced in a parent model.When I am trying to build the code(Ctrl+B), I am getting an error : "This is not allowed in a model configured to be referenced multiple times.To enable code reuse, the block must have a TLC implementation and the S-function's mdlInitializeSizes function must set the option 'SS_OPTION_WORKS_WITH_CODE_REUSE'. To configure the model to be referenced only once, change the configuration parameter 'Total number of instances allowed per top model' to 'One'." I changed the setting to One instead of Multiple in model referencing tab of Configuration part still the problem persists.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink PLC Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!