about error in stateflow
1 回表示 (過去 30 日間)
古いコメントを表示
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
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
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 件のコメント
Azzi Abdelmalek
2012 年 10 月 15 日
you have two feedback to your chart, add two unit delay block from simulink/discrete

その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!