about error in stateflow

조회 수: 2 (최근 30일)
Pham Van Dung
Pham Van Dung 2012년 10월 15일
dear,
when i implement stateflow in block to mult or add signals in stateflow, i have this error:
_Cannot solve algebraic loop involving 'SUMOFPRODUCT/Sumofproduct/Product1' because it consists of blocks that cannot be assigned algebraic variables, i.e., blocks with discrete-valued outputs, blocks with non-double or complex outputs, Stateflow blocks, or nonvirtual subsystems
Need for helping!
Best regards!
Pham van Dung
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 10월 15일
Please read the guide to tags and retag this question; see http://www.mathworks.co.uk/matlabcentral/answers/43073-a-guide-to-tags

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

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2012년 10월 15일
편집: Azzi Abdelmalek 2012년 10월 15일
You have an algebraic loop means that in your model you have a feedback through a block which don't contain any delay, it's like you write y(n)=2*y(n)+1, which is not correct, you should write y(n+1)=2*y(n)+1. to correct insert before your feedback a unit delay block
  댓글 수: 2
Pham Van Dung
Pham Van Dung 2012년 10월 15일
i didn't use any function in my project, just only use add and product block in simulinks. This is my model:
Can you give me the ideal for this problem. thanks you so much!!
Pham Van Dung
Azzi Abdelmalek
Azzi Abdelmalek 2012년 10월 15일
you have two feedback to your chart, add two unit delay block from simulink/discrete

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by