Why do I get an error when using a SimPowerSystem model as a model reference in MATLAB R2014a?
조회 수: 1 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2014년 9월 12일
답변: MathWorks Support Team
2014년 9월 12일
When I try to use a SimPowerSystem model as a model reference in MATLAB R2014a I get the following error:
error using ==> RTW.makertw.make_rtw
Error using ==> tlc_c
Error using ==> rtwgen
Error using ==> set_param
Model reference does not support non-inlined S-Functions. The S-Function 'sfun_spssw_contc' used in 'ActuatorModel_Final/powergui/EquivalentModel1/State-Space' is not inlined. To be able to reference the model 'ActuatorModel_Final', the S-function needs a target file (sfun_spssw_contc.tlc) and the option SS_OPTION_USE_TLC_WITH_ACCELERATOR must be set in the S-function source code.
Why am I getting this error?
채택된 답변
MathWorks Support Team
2014년 9월 12일
This is a known limitation in MATLAB R2014a. The S-Functions of SimPowerSystem simulation are not inlined. Consequently you get an error when you try to build code for model reference.
If you need further help, please contact MathWorks Technical Support.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Prepare Model Inputs and Outputs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!