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

조회 수: 6 (최근 30일)
Jay
Jay 2014년 11월 3일
댓글: EddieM 2017년 11월 8일
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에서 Simulink Coder에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by