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

5 visualizaciones (últimos 30 días)
Jay
Jay el 3 de Nov. de 2014
Comentada: EddieM el 8 de Nov. de 2017
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 comentarios
Patricia
Patricia el 7 de Sept. de 2015
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 el 8 de Nov. de 2017
Did you ever find a solution to this? I'm having the exact same problem at the moment

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by