フィルターのクリア

Code generation from S-Function

4 ビュー (過去 30 日間)
Kaustubh Gandhi
Kaustubh Gandhi 2015 年 5 月 11 日
コメント済み: sridhar.s 2017 年 8 月 17 日
Hi, I have a S-Function, which is created from C. I have to share this S-Function to other 3rd parties, along with the information of parameters and their order.
I want to block code generation from this S-Function by the 3rd parties, which receive this model. Is it possible to block such a code generation from S-Function.
Thanks in advance,
  1 件のコメント
sridhar.s
sridhar.s 2017 年 8 月 17 日
Hi I am working on EKF based induction machine on RT-LAB(Real Time System) for that i need s-function which is created from C code for non linear systems so please provide me the code if possible could you please help me in this regard

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

採用された回答

Sainath Varikuti
Sainath Varikuti 2015 年 5 月 13 日
A '.mex' of an S-Function is only good for Simulation. i.e for Model update, Simulating in Normal mode and Accelerator mode (by default). For generating code you would need the following files as discussed here .
1) Noninline S-Function - A source file of your S-Function. However there are certain limitations discussed here .
2) Inline S-Function - It is necessary to have a '.tlc' file for your S-Function in-order to generate Inline code and Simulate in Rapid accelerator mode.
Therefore, If you do not have either the source file or the tlc file you cannot generate code for your S-Function

その他の回答 (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