Questions about Simulink continous Integrator
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I have a couple of questions about the continuous integrator in Simulink on which I've been stuck for a while and would appreciate some help.
1) Can we have a continuous integrator inside an atomic subsystem?
2) Consider the model shown below (Subsystem1 is atomic). The model shown below seems to run without any issues.
In the second case, we have an additional gain block as shown. This model fails to compile and shows an algebraic loop error. I am unable to explain why this is the case.
0 comentarios
Respuestas (2)
Gillian Rosen
el 10 de Abr. de 2017
Editada: Gillian Rosen
el 10 de Abr. de 2017
Hi Yogesh,
I understand that you would like to know 1) if continuous Integrator blocks may be used in atomic subsystems, and 2) why your two example models behave differently with regards to algebraic loops.
1) Yes, continuous Integrator blocks may be used in atomic subsystems. Please note that models that use continuous blocks should also use continuous solvers.
2) As you may have already suspected, the issue has to do with the block execution order.
In your first model (no Gain inside the atomic subsystem), the Integrator provides initial conditions, then the Gain uses them, so execution order can be successfully established for all blocks in the model.
In your second model, the Integrator will still need to execute first, since it provides initial conditions for the model. Since the Integrator is in an atomic subsystem, the whole subsystem will have to execute before anything outside of it. However, the Gain inside the atomic subsystem (before the Integrator) needs the output of the other Gain block (outside the atomic subsystem) in order to compute its own output. This is where the algebraic loop arises- the inner Gain needs the outer Gain to execute first, and the outer Gain needs the inner Gain to execute first.
0 comentarios
Ver también
Categorías
Más información sobre General Applications en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!