フィルターのクリア

frestimate (data,w,units) not working

3 ビュー (過去 30 日間)
Ivan Petric
Ivan Petric 2020 年 3 月 31 日
回答済み: miguel rodriguez 2021 年 7 月 26 日
Hello,
I am trying to do a frequency response analysis of Boost converter output impedance in simulink.
I have previously used the frestimate function succesfully, and I am not sure what is now causing the problem.
Frequency response estimator is setup with sample time equal to switching period. Excitation Signal source is Block parameters.
Experiment mode is sinestream, and I am processing offline, in MATLAB using command below.
logdata=logsout{1}.Values;
sys_estim=frestimate(logdata,f_test,'Hz');
I get the following error:
Index exceeds the number of array elements (0).
Error in freblkData2Frd (line 35)
IsSuperimposeMode = running(2)>(SI+SS)/2;
Error in frestimate (line 78)
varargout{1} = freblkData2Frd(data,w,units);
What is causing this problem? Thanks alot!

採用された回答

Harshendra Shah
Harshendra Shah 2020 年 4 月 8 日
編集済み: Harshendra Shah 2020 年 4 月 8 日
This error message can occur if your model is corrupted.
You can try to copy the contents of the model into a new Simulink model with the same configuration parameter settings and simulate it.
You can also check if the logdata and f_test parameters that you are passing are not empty.
Hope this helps.
  2 件のコメント
Ivan Petric
Ivan Petric 2020 年 4 月 12 日
In the end, I noticed that the error report keeps showing when I have scope attached to output data port.
When I disconnected it, the model started working properly.
It is probably some bug, that might be worth investigating from MATLAB side.
Thanks for the answer!
Derry Lapin
Derry Lapin 2021 年 4 月 27 日
I'm receiving the exact same error. I will try removing my scopes to see if that fixes the problem.

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

その他の回答 (1 件)

miguel rodriguez
miguel rodriguez 2021 年 7 月 26 日
I'm experiencing the same thing, can someone from Matlab comment on this? Removing the scopes seems a bit arbitrary.

カテゴリ

Help Center および File ExchangeOffline Frequency Response Estimation についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by