How can I solve an algebraic loop error?
57 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
Orion
2014-12-8
As Simulink says it to you : just add a delay to break the algebraic loop.
2 个评论
Jagos Jovanovic
2023-5-21
Goated, this just save me hours of trying to build it without using a MATLAB fnc
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!