Borrar filtros
Borrar filtros

Using loops for simulation in Simulink

3 visualizaciones (últimos 30 días)
James Murray
James Murray el 24 de Mzo. de 2014
Comentada: James Murray el 24 de Mzo. de 2014
Hello
I have a Simulink model that does arithmetic to calculate value "B". I would like to make use of this value "B" and subtract it from the initial value "A" used in the model. I would like to then use this new calculated value of "A" to do rest of the simulation. When I try to do this by connecting the blocks, I get an error message saying:
"Simulink cannot solve the algebraic loop containing 'Combined/Angle Calculation' at time 0.01 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('Combined','AlgebraicLoopSolver','LineSearch') b) reducing the ode45 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."
Please help

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 24 de Mzo. de 2014
add a unit delay block to your simulink model just after the calculation of A, you can set the initial value of this block.

Más respuestas (0)

Categorías

Más información sobre Simulink Functions 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