- There is no "initial condition" in a Simulink Logical Operator block. The output is solely dependent on the input/inputs.
- By definition, there is no "initial condition" or state in a D Flip-Flop.
- To be able to set an "initial condition" or initial state, you have to have a "memory". The "Initial Condition" block, or the "Memory" block, or the "Unit Delay" block can be used.
- The "D Flip-Flop" block is available in Simulink library, "Simulink Extras"->"Flip Flops"
Initialize logic block simulink
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi I have implemented a set/rest D type flip flop in simulink. But am getting the following error "Cannot solve algebraic loop involving 'Set_Reset_D_Flip_Flop/Logical Operator3' because it consists of blocks that cannot be assigned algebraic variables" I'm pretty sure the error is occurring as some inputs depends on outputs of other blocks. Is there a way to set initial conditions on logic blocks in simulink?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/156682/image.png)
0 Kommentare
Antworten (1)
Fangjun Jiang
am 4 Mär. 2016
0 Kommentare
Siehe auch
Kategorien
Mehr zu Sources finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!