Modify power_wind_dfig

3 ビュー (過去 30 日間)
William Roca
William Roca 2017 年 4 月 20 日
コメント済み: William Roca 2017 年 5 月 13 日
Hi, I'm trying to modify the 'wind_power_dfig' example for a hybrid wind-hydro system on my dissertation project. I tried to create a modified model and regenerating the initial conditions with the 10 steps on the help menu, but couldn't succeed. Here are the problems I found:
*On step 5, the unmodified example didn't have a xFinal output. I believe I fixed this by checking the 'Final states' box on the 'Simulation/Configuration Parameters/Data Import/Export' menu.
*On step 6, Simulink gives me the error below after trying to simulate:
Error evaluating 'InitFcn' callback of block_diagram 'power_wind_dfig'. Caused by: Undefined function or variable 'myModel_init'. Component:Simulink | Category:Block diagramerror
I believe the model didn't recognized the 'myModel_init.mat' I created on step 5, but I can't find a reason why. Could you help me out please? Thank you!

採用された回答

Sudarshan Kolar
Sudarshan Kolar 2017 年 4 月 24 日
Hello William,
I understand that you are getting an error following the documentation steps. The doc seems to have an error in it.
Please change the init callback to this:
load('myModel_init');
Hope that helps.
Sudarshan
  1 件のコメント
William Roca
William Roca 2017 年 5 月 13 日
Hi Sudarshan, sorry for the late reply.
I changed the init callback as you said and it seems to have worked now. Thank you so much for the help!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by