File Exchange Pick of the Week

Our best user submissions

Incorporate legacy code into Simulink


The file submission referenced in this post is no longer available on File Exchange.

When organizations adopt Simulink for Model-Based Design of embedded systems, they often struggle with the transition from their existing code to the new environment. Simulink's S-Functions allow users to pretty easily incorporate legacy (existing) C-code into Simulink models for simulation. It takes quite a bit more work to incorporate legacy code into both your Simulink simulation AND the embedded real-time system (with code generated by Real-Time Workshop).

Tom Erkkinen just posted his Legacy Code Tool to the File Exchange. This tool automatically generates the S-Function interfaces for your legacy code. What's unique (i.e., different from the S-Function Builder provided with MATLAB) is that these interfaces are optimized for real-time and embedded code applications. This should prove to be an invaluable tool for those of us who want to efficiently integrate Simulink with existing code bases.

On a side note, I should point out that Tom is a fellow MathWorker. This submission is a great example of how we like to use the File Exchange to get useful functionality in our user's hands as quickly as possible. I'm sure Tom will get tons of feedback on his tool to fine-tune it for future users.

  • print


コメントを残すには、ここ をクリックして MathWorks アカウントにサインインするか新しい MathWorks アカウントを作成します。