遗留代码 matlab/simulink
Matlab/Simulink 中遗留代码的含义是什么?在使用 s-function 的情况下,c 代码?
What is the meaning of legacy-code in Matlab/Simulink? In the context of using s-function, c code?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
“遗留代码”是指在 Simulink 模型之前出于其他目的编写的代码,然后不使用 S-Function API。旧代码工具为您生成调用您自己的旧代码的 S-Function 代码。
By "legacy code", they mean code written before the Simulink model for another purpose and then without using the S-function API. The Legacy Code Tool generate for you the S-function code calling you own old code.
旧代码就像任何应用程序的手写代码。您将该遗留代码转换为系统函数(S-Function),以便将遗留代码转换为模型。将现有遗留代码转换为 Matlab Simulink 模块称为逆向工程。
S-Function 不仅有助于函数建模,而且还有助于测试应用程序,因为 matlab 提供了非常好的测试支持。
The Legacy code is like a Handwritten Code for any application. You convert that Legacy code to a System Function( S-Function) so as to convert a Legacy Code to a Model. The conversion of existing Legacy Code to a Matlab Simulink Module is referred as Reverse Engineering.
The S-function not only helps in modeling the function but also in Testing the application as matlab provides a very good testing support.