How to use IC block in simulink

8 visualizaciones (últimos 30 días)
Nikhilesh
Nikhilesh el 13 de Sept. de 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 comentarios
Kaustubha Govind
Kaustubha Govind el 8 de Nov. de 2012
You have posted a snapshot of your model, but not the error. Please paste the exact error message that you receive.
Maira
Maira el 6 de Sept. de 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!

Iniciar sesión para comentar.

Respuestas (1)

Kaustubha Govind
Kaustubha Govind el 6 de Sept. de 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

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by