![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/177055/image.jpeg)
How can I solve an algebraic loop error?
33 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146363/image.jpeg)
0 Commenti
Risposta accettata
Orion
il 8 Dic 2014
As Simulink says it to you : just add a delay to break the algebraic loop.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/177055/image.jpeg)
2 Commenti
Jagos Jovanovic
il 21 Mag 2023
Goated, this just save me hours of trying to build it without using a MATLAB fnc
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Simulink Functions in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!