How to generate ST code for s-functions?

I want to generate function that consist of 'tf' and 'c2d' but i face this error 'The 'tf' class does not support code generation'. what can i do?is there way to solve this problem?

 採用された回答

Birdman
Birdman 2017 年 11 月 15 日

0 投票

There is nothing to be done for unsupported classes for code generation. But I assume that you are going to implement a control system, you can implement it by converting the system to a difference equation since eventually what you are going to obtain is a difference equation by discretizing your system. Hope this helps.

その他の回答 (1 件)

sajjad allahgoli
sajjad allahgoli 2017 年 11 月 15 日

0 投票

Thank you so much

カテゴリ

ヘルプ センター および File ExchangeSimulink PLC Coder についてさらに検索

質問済み:

2017 年 11 月 14 日

回答済み:

2017 年 11 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by