Is there someone who generate s-function from simulink subsyste开发者_StackOverflowm by right click->generate s-function ? could you explain me how the generated code could be used ?
It will generate the C code equivalent of your subsystem. You can use this code in a S-function block ('User-defined Function/S-function').
The "generate" menu also automatically create a block visualy similar to you subsystem but encapsulating the S-function (with this C code). If you do 'look under mask' on this block you will see the S-function itself. This block if faster than the original one.
精彩评论