Algebraic loop error while using flip-flops

19 ビュー (過去 30 日間)
Yakov M
Yakov M 2019 年 4 月 6 日
回答済み: Yakov M 2019 年 4 月 7 日
For following model I recieve an error
Cannot solve algebraic loop involving 'boo/Subsystem/Bistable6/Model/RESET Priority' 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.
I tried to add delays 1/Z as suggested but I didn't helped me much(bistable is a SR-FF)
  5 件のコメント
Yakov M
Yakov M 2019 年 4 月 7 日
編集済み: Yakov M 2019 年 4 月 7 日
So what is the solution? Should I add a delay or memory block and if yes where it should go?
Walter Roberson
Walter Roberson 2019 年 4 月 7 日
As you are using discrete time, then add a Unit Delay on the Q output -- before it goes to the scope or to the GOTO.

サインインしてコメントする。

回答 (1 件)

Yakov M
Yakov M 2019 年 4 月 7 日
The solution was to add a memory block so now I don't recieve anyerror.
Could someone explain if I had used 1/z delay it would be better?Capture.PNG

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by