Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有人通过右键单击->生成 s-function 从 simulink 子系统生成 s-function ?你能解释一下如何使用生成的代码吗?
它将生成与您的子系统等效的 C 代码。您可以在 S-Function 块(“用户定义的功能/S-Function”)中使用此代码。
“生成”菜单还会自动创建一个与您的子系统类似但封装了 S-Function(使用此 C 代码)的可视化块。如果您在此块上“查看掩码”,您将看到 S-Function 本身。这个块如果比原来的快。