Convert a Simscape model to a S-function block

7 ビュー (過去 30 日間)
T Bui
T Bui 2021 年 10 月 7 日
回答済み: Shivam Ahuja 2021 年 10 月 13 日
I want to share my Simscape model with partners who haven't got a Simscape license in their Matlab. I'm thinking to convert it to a S-function block (like a black box with multi-I/O ports).
Please anyone know how to convert a Simscape model to such S-function block or any alternative way is grateful.
I follow this, but it seems the System target file doesn't support a Simscape model.
Many thanks

回答 (1 件)

Shivam Ahuja
Shivam Ahuja 2021 年 10 月 13 日
I understand that you want to share Simscape model with partners who doesn’t have Simscape license in MATLAB.
S-Functions are not supported for Simscape.
  • A possible workaround would be to save the model in restricted mode:
  • Please note that the protected model workflow would only work starting with R2020a or newer:
However, they would need need at least a Simscape license to simulate it.

カテゴリ

Help Center および File ExchangeRun-Time Parameters についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by