Code Generation with Inlined S-Functions

1 回表示 (過去 30 日間)
Taylor Hubbard
Taylor Hubbard 2016 年 5 月 5 日
回答済み: Nikhil Vyas 2016 年 5 月 10 日
How do I force the code generator to copy the header and .c files to the generated code directory when building a model with inlined wrapper s-functions? I can build the model if I manually copy the missing files to the directory, but it would be nice to have this done automatically. Thanks, Taylor

回答 (1 件)

Nikhil Vyas
Nikhil Vyas 2016 年 5 月 10 日
I don't know about any in-build method to do this. However you can configure the model to execute your custom code before loading using Callback Modules.
You can add the MATLAB code to copy the files from your directory to generated code directory in one of the callbacks.

カテゴリ

Help Center および File ExchangeC Shared Library Integration についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by