Can't protect model because of unknown non-inlined s-function

1 次查看(过去 30 天)
I'm trying to convert a referenced model in Simulink to a protected model. It gives me the error:
"The model 'xxxx' cannot be protected because it or a model that it directly or indirectly references contains a non-inlined S-Function.
There are no S-functions in the design written by me. The design is built with Simulink library modules and user defined Matlab functions. I went to every block, broke the link to the library, defined it as an atomic unit and told it to compile as inline.
This worked for every block except one: the "Continuous" block in the spsMeanValueModule library. If I break the link to this library, I get an error for a missing reference when I try to run.
The video tutorial on protecting referenced modules does not show any requirement to manually go to every library block and tell it to compile inline so I suspect all this effort is for naught anyway.
How do I find the offending s-function and what do I do about it?
  2 个评论
Patricia
Patricia 2015-9-7
I also get this error when I try to protect a model that uses one of my S-Functions, but it is actually inlined with a TLC script... So I don't quite get why it fails!
I commented this block out and tried again, and it was successful. That's how I know this was the "offending" block.
EddieM
EddieM 2017-11-8
Did you ever find a solution to this? I'm having the exact same problem at the moment

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interactive Model Editing 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by