Reputation: 165
What is the meaning of legacy-code in Matlab/Simulink? In the context of using s-function, c code?
Upvotes: 1
Views: 1814
Reputation: 11
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.
Upvotes: 1
Reputation: 3032
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.
Upvotes: 2