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

2 visualizzazioni (ultimi 30 giorni)
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 Commenti
Patricia
Patricia il 7 Set 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 il 8 Nov 2017
Did you ever find a solution to this? I'm having the exact same problem at the moment

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Simulink Coder in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by