MATLAB: Non inlined S function in a protected model

protected model; non-inlined s functionsimulink

I have a non-inlined S-function in a MDL. I need to create a protected model of this MDL. I am not very experienced with converting a non-inlined S function to an inlined S function. What are my options here to create the Protected model which contains a non-inlined S function inside the MDL.
Thanks

Best Answer

According to the documentation:
A protected model cannot use noninlined S-functions directly or indirectly.
So unfortunately, it looks like you must write a TLC to make it an inlined S-function.
Related Question