An error when I run with model reference

조회 수: 26 (최근 30일)
Chengyi Wu
Chengyi Wu 2022년 2월 3일
답변: Saurabh 2024년 11월 20일
I built a model of Wind farm, and the wind turbines are used by referenced models that I built and converted. Then I run this wind farm model. There is an error I don't understand.
Unable to update models referenced by 'T2'.
Caused by:
  • Invalid run-time parameter registration in S-function 'sfun_spssw_discc' in model 'WF100MW'. An S-function can register run-time parameters only if the S-function is being inlined. To be able to reference the model 'WF100MW', the S-function 'sfun_spssw_discc' needs to set the option SS_OPTION_USE_TLC_WITH_ACCELERATOR and it needs to have a TLC file.

답변 (1개)

Saurabh
Saurabh 2024년 11월 20일
To address this issue, try using 'powergui.' Navigate to preferences and enable the option called 'Use TLC file when in Accelerator Simulation Mode and for code generation.'
The same information can be found here:
I hope this helps.

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by