Real time workshop code generation with S-function

1 回表示 (過去 30 日間)
Sunu
Sunu 2012 年 2 月 29 日
I am trying to build a model with s-function and I only have mexw32 file of that function available. I am using easy hooks(ehooks) target for code generation, but it never find the mex file. what can I modify so that build process can see the compiled code.

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2012 年 3 月 1 日
What is the error that you get exactly? Do you see the error even without your custom hooks? I'm think that you need at least a TLC file corresponding to the S-function if not the source code (.c file).
  1 件のコメント
Sunu
Sunu 2012 年 3 月 1 日
The c code for the S-function is inc.c and in the mdlOutputs section there is reference to another function INCusp and the error I get is "HIGHTEC_GCC_COMPILER: implicit declaration of function 'INCusp' ". I do not have access to INCusp function, but I have inc.mexw32 file. I have the TLC file inc.tlc also available. Is the Mex file not enough or do I need the c code for the INCusp for the build process to be successful.

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

カテゴリ

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