How to use IC block in simulink

8 views (last 30 days)
Nikhilesh
Nikhilesh on 13 Sep 2012
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 Comments
Kaustubha Govind
Kaustubha Govind on 8 Nov 2012
You have posted a snapshot of your model, but not the error. Please paste the exact error message that you receive.
Maira
Maira on 6 Sep 2013
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!

Sign in to comment.

Answers (1)

Kaustubha Govind
Kaustubha Govind on 6 Sep 2013
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

Categories

Find more on Modeling in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!