laura
laura

Reputation: 165

legacy code matlab/simulink

What is the meaning of legacy-code in Matlab/Simulink? In the context of using s-function, c code?

Upvotes: 1

Views: 1814

Answers (2)

Harsha B
Harsha B

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

Clement J.
Clement J.

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

Related Questions