An error when I run with model reference
4 ビュー (過去 30 日間)
古いコメントを表示
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.
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 件のコメント
Walter Roberson
2022 年 2 月 3 日
Try turning Acceration to Normal; https://www.mathworks.com/help/sldo/ug/accelerating-model-simulations-during-optimization.html
回答 (1 件)
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:
- https://www.mathworks.com/help/sps/powersys/ref/powergui.html#mw_081370b9-45b5-4a1f-9710-94f3835bf2cc
- https://www.mathworks.com/help/simulink/sfg/ss_option_use_tlc_with_accelerator.html
I hope this helps.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Block Authoring and Simulation Integration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!