How to make a Flip-flop

12 views (last 30 days)
Syperia
Syperia on 7 Apr 2012
When I started modelling in Simulink simple SR latch according to a wiki page, I've got an error:
Cannot solve algebraic loop involving 'SRLatch/Subsystem/nor2'...
I know that there exists a nice Simulink Extas/Flip flops but want to do my own.
I've tried adding memory and delay (z^-1) block but the results were wrong.

Accepted Answer

K E
K E on 9 Apr 2012
If your question is "how to eliminate an algebraic loop if the Unit Delay changes my system's dynamics", this blog entry discusses reconsidering unphysical algebraic loops in your model. Simscape can be a workaround for loops, see Guy Rouleau's answer on this topic. If your time sampling is continuous you may want to try the Memory block instead of the Unit Delay block which is more appropriate for discrete sampling.

More Answers (0)

Categories

Find more on General Applications in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!