Build Errors with S-function

조회 수: 8 (최근 30일)
Sunu
Sunu 2011년 12월 9일
The model I am trying to build has a S-function and I have access to the s-function.c file. The source file has a function call with the same name(<s-function> name)in the mdloutputs. Whenever I try building the model it gives the error "undefined reference to `ApplyFILT_1stOrderLag_flt'". The directory also have the rtwmakecfg.m and all the libraray referenced.
how does a sfunction C file with a function call work?.
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2011년 12월 9일
Could you show us how you define your rtwmakecfg.m? Also, turn on "Verbose build" from the Code Generation>Debug pane in the Configuration Parameters window and check the build log to see if your libraries are being linked in correctly.

댓글을 달려면 로그인하십시오.

답변 (1개)

Sunu
Sunu 2011년 12월 13일
I did fix the issue, wrote an algorithm for the filter and compiled using mex function.
Thanks Kaustubha for the help

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by