Derivative of state '1' in block PV Array at time 0.0 is not finite error

조회 수: 33 (최근 30일)
Nishant
Nishant 2024년 3월 17일
답변: Mirza 2025년 3월 10일
im trying to charge a battery using a solar pv array and i keep getting the following error: An error occurred while running the simulation and the simulation was terminated
Caused by:
what am i not doing correctly?

채택된 답변

R
R 2024년 3월 25일
Hi Nishant,
This error occurs when some operation in the model returns "Inf" or "NaN" output. To debug this error, open Configuration Parameters and navigate to Diagnostics > Data Validity. Set the diagnostic "Inf or NaN block output" to error. When you run your simulation, you will get the error as follows:
An error occurred while running the simulation and the simulation was terminated
Caused by:
Block 'BlockName' outputs 'NaN' for element x of output port x at major time step 0
Where 'BlockName' is the block in which the error is thrown.
This block either divides by 0 or outputs NaN, which creates an Inf which generates this error. Therefore, avoid division by zero in the logic and check operations for possible NaN outputs.
  댓글 수: 3
R
R 2024년 4월 12일
It's difficult to identify the specific issue based solely on the image. Could you please attach the Simulink model along with your response so that I can examine it more closely?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Mirza
Mirza 2025년 3월 10일
I'm having the same problem as you while designing my MPPT, my solution was to add a small capacitor pararel to the + and - of the PV Panel, 0.00001 should be good. Try it and see if it works

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

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

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by