legacy code in an input port

2 ビュー (過去 30 日間)
Michael
Michael 2011 年 9 月 20 日
Hi,
I am looking to incorporate legacy c code into a simulink input port. I remember being told that this was possible, but have no idea where to start. I have the embedded coder products. The C code will be driver type code, and will be conditionally built dependent on the target. Any pointers are greatly appreciated. Thanks. Michael.
  2 件のコメント
TAB
TAB 2011 年 9 月 20 日
Legacy code tool is used to integrate the existing C functions into simulink model by generating s-function from them.
Find on http://www.mathworks.in/help/toolbox/simulink/sfg/bq4g1es-1.html
What do you mean by 'legacy c code into a simulink input port'?
Please explain what you want to do.
Michael
Michael 2011 年 9 月 20 日
Hi, I have used the legacy code tool before, and could use it again. The c code is not algorithmic, but is an interface driver. I have been looking over the embedded coder documentation, in particular mpt signal objects. with an mpt signal object it seems I can set a store class as GetSet, and supply c code for the GetSet function.
Just making sure I was going along the correct route.
Thanks, Michael

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by