Can I wrap C code generated in the 2015b version using the 2012b s-function?

1 回表示 (過去 30 日間)
HYUN SEOK
HYUN SEOK 2017 年 3 月 13 日
回答済み: Alisha Schor 2017 年 3 月 20 日
Can I wrap C code generated in the 2015b version using the 2012b s-function?
Or do I need to convert the 2015b model to 2012b and generate C code?
For reference, I need to use the 2015b model to create a dSpace s-function with 2012b.

採用された回答

Alisha Schor
Alisha Schor 2017 年 3 月 20 日
If I understand correctly, you would like to incorporate C code generated from one model into another model via a wrapper S-function. This is, in principle, possible, and should be release independent.
In order to build this wrapper, be sure to include all of the generated header files and helper functions produced by the Simulink code generation process. You can use the Legacy Code Tool to do this. Documentation on Legacy Code Tool can be found at the link below, or by searching "Legacy Code Tool" within the documentation of your installed MATLAB release.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by