How can I solve an algebraic loop error?

33 visualizaciones (últimos 30 días)
Ilya
Ilya el 8 de Dic. de 2014
Comentada: Jagos Jovanovic el 21 de Mayo de 2023
I have this system. There is a stateflow block in Joystik and a "i = i+1" code in dotSelection. I reseive tkis error:
"Cannot solve algebraic loop involving 'Lorien/dotSelection' because it consists of blocks that cannot be assigned algebraic variables, such as blocks with discrete-valued outputs, blocks with non-double or complex outputs, Stateflow blocks, or nonvirtual subsystems. Consider breaking the algebraic loop. For example, add a delay or a memory block to the loop.
Algebraic loop error with 'Lorien/Joystik /Chart'
Algebraic loop error with 'Lorien/dotSelection'"
Can I solve it?

Respuesta aceptada

Orion
Orion el 8 de Dic. de 2014
As Simulink says it to you : just add a delay to break the algebraic loop.
  2 comentarios
Miran Dabare
Miran Dabare el 11 de Oct. de 2018
OMG THANK YOU SO MUCH!! I was stuck on this issue for so long!
Jagos Jovanovic
Jagos Jovanovic el 21 de Mayo de 2023
Goated, this just save me hours of trying to build it without using a MATLAB fnc

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by