legacy code matlab/simulink
What is the meaning of legacy-code in Matlab/Simulink? In the context开发者_开发技巧 of using s-function, c code?
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.
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.
精彩评论