how to solve Initial conditions failed for convergence

조회 수: 17 (최근 30일)
Jun Won Lee
Jun Won Lee . 2020년 12월 19일
편집: Gökhun Çelik . 2022년 1월 9일
I try to make Flash ADC with encoder and see its binary output. The op-amp part is Flash ADC and the last part is encoder part.
But when I simulate it the below error message is shown. How to solve this problem?
First solve for initial conditions failed to converge. Trying again with all high priorities relaxed to low.
Component:Simulink | Category:Model warning
Second solve for initial conditions failed to converge. Trying again with all variable targets ignored.
Component:Simulink | Category:Model warning
  댓글 수: 1
Gökhun Çelik
Gökhun Çelik 2022년 1월 9일
편집: Gökhun Çelik 님. 2022년 1월 9일
Did you find any solution the comment which is below does not solve my problem.
Thanks !

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

답변 (1개)

Aman Vyas
Aman Vyas 2020년 12월 22일
If you want to set initial condition targets for block variables then you must ensure that the "start from steady state" option is turned off. This is because when "start from steady state" is used, the solver ignores the initial condition targets you set for the variables and tries to find a steady state initial condition solution. In a big nonlinear model, it might not be able to find a steady-state solution. Even if it does, that steady-state solution is simply "a solution" and might not be a solution that you'd expected based on your variable targets (since those targets are ignored).
Hope it helps !


Help CenterFile Exchange에서 Run-Time Parameters에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by