필터 지우기
필터 지우기

Initialize logic block simulink

조회 수: 3 (최근 30일)
David Quilligan
David Quilligan 2016년 3월 4일
답변: Fangjun Jiang 2016년 3월 4일
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?

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2016년 3월 4일
  1. There is no "initial condition" in a Simulink Logical Operator block. The output is solely dependent on the input/inputs.
  2. By definition, there is no "initial condition" or state in a D Flip-Flop.
  3. 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.
  4. The "D Flip-Flop" block is available in Simulink library, "Simulink Extras"->"Flip Flops"

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by