How can I solve an algebraic loop error?

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?

 채택된 답변

Orion
Orion 2014년 12월 8일

10 개 추천

As Simulink says it to you : just add a delay to break the algebraic loop.

댓글 수: 2

Miran Dabare
Miran Dabare 2018년 10월 11일
OMG THANK YOU SO MUCH!! I was stuck on this issue for so long!
Goated, this just save me hours of trying to build it without using a MATLAB fnc

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Stateflow에 대해 자세히 알아보기

질문:

2014년 12월 8일

댓글:

2023년 5월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by