필터 지우기
필터 지우기

How to solve the block error in the simulink model?

조회 수: 146 (최근 30일)
Priya
Priya 2014년 1월 21일
댓글: Laddipeerla 2023년 6월 27일
Hi,
When I run my state space model, I get the following error message,
Derivative input 5 of 'statespacemodel_hvm/State-Space' at time 2.2297592983646024 is Inf or NaN. Stopping simulation. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)
Usually, the simulation diagnostics viewer shows the region where the error has caused, but I can't find it.
Please drop your suggestions as why this error could have occurred.
  댓글 수: 5
Laddipeerla
Laddipeerla 2023년 6월 27일
Yes please even I’m getting the same issue!
Laddipeerla
Laddipeerla 2023년 6월 27일
It showed me up like as follows…
Caused by: • Derivative of state '1' in block 'untitled/PV Array2/Diode Rsh/Transfer Fen' at time 0.0 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)

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

채택된 답변

Mischa Kim
Mischa Kim 2014년 1월 21일
편집: Mischa Kim 2014년 1월 21일
There are a couple of things you might want to consider:
  • Is the system unstable (by design)? Therefore, does it need to be controlled?
  • If it is stable, there could be a "bug" in the code that makes the system unstable.
  • Third, are you using the right solver and solver settings? Open Simulation > Model Configuration Parameters and check out the solver options. ode45 might be the best choice to get started. Try reducing the absolute and relative tolerances.
  • Lastly, try the debugger .
  댓글 수: 2
Priya
Priya 2014년 1월 21일
As you suggested, I think it should be the second one since the system is stable. But then the error seems to have occurred in the state space block of the model.
So, do I have to check the state space equations again?
Thanks
Priya
Priya 2014년 1월 21일
Following the error mentioned in the previous post, I get another error while running the simulink model which is as below,
Error in port widths or dimensions. Output port 1 of 'statespacemodel_hvm/Mux' is a one dimensional vector with 2 elements.
Please do help me.

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

추가 답변 (0개)

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by