How to use IC block in simulink

I have this small simulink model which is giving me error.
I think I dont understand the working of IC block. Can someone help me debug it? link to simulink model https://dl.dropbox.com/u/59711094/trial.mdl

댓글 수: 3

Kaustubha Govind
Kaustubha Govind 2012년 9월 13일
Please specify the exact error message that you are seeing.
Kaustubha Govind
Kaustubha Govind 2012년 11월 8일
You have posted a snapshot of your model, but not the error. Please paste the exact error message that you receive.
Maira
Maira 2013년 9월 6일
I am having the same problem understanding it. I made this pic simple example and the error is:
"Simulink cannot solve the algebraic loop containing 'untitled1/IC1' at time 0.0 using the TrustRegion-based algorithm due to one of the following reasons: the model is ill-defined i.e., the system equations do not have a solution; or the nonlinear equation solver failed to converge due to numerical issues. To rule out solver convergence as the cause of this error, either a) switch to LineSearch-based algorithm using set_param('untitled1','AlgebraicLoopSolver','LineSearch') b) reducing the VariableStepDiscrete solver RelTol parameter so that the solver takes smaller time steps. If the error persists in spite of the above changes, then the model is likely ill-defined and requires modification."
I also can´t find out anywhere how to use it!

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

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2013년 9월 6일

0 개 추천

As the error suggests, your system clearly does not have a solution that the solver can converge to:
y(n) = 1 + y(n-1);
y(0) = 3; %as defined by the IC block
Seems to me that the output is un-bounded and un-stable.
Also, the documentation for the IC block is here: http://www.mathworks.com/help/simulink/slref/ic.html

카테고리

도움말 센터File Exchange에서 Modeling에 대해 자세히 알아보기

제품

태그

질문:

2012년 9월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by