开发者

what can I do with generate S-function

开发者 https://www.devze.com 2023-02-04 01:02 出处:网络
Is there someone who generate s-function from simulink subsyste开发者_StackOverflowm by right click->generate s-function ?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消