Hello,
PLC Coder currently does NOT support generating code from an s-function. The error message is misleading though and we will work on fixing the message to be more accurate.
Thanks for posting this. It would be great if you could also report this issue to Mathworks Tech Support so that they can create a formal request for this and we can look into your requirement in more detail.
Thanks and regards, Kalyan Bemalkhedkar Simulink PLC Coder development team
Best Answer