Flip-Flop simulation

조회 수: 9 (최근 30일)
Beita Iulian
Beita Iulian 2020년 11월 1일
댓글: Beita Iulian 2020년 11월 1일
Hello, I am begginer in using simulink and I want that to simulate how a D flip-flop works. The question is how can i make a variable boolean value for the D-input of flip flop, i tried to use a constant and make it boolean but she stays only in 1 or 0 no switched value.

채택된 답변

stozaki
stozaki 2020년 11월 1일
편집: stozaki 2020년 11월 1일
If you just want to switch the boolean value, you can do it with the ManualSwitch block. You can double-click the Manual Switch while running the simulation to switch the values.
However, it is not possible to create complex simulation patterns this way, so I recommend using the FromWorkSpace and Signal Generator blocks.
  댓글 수: 1
Beita Iulian
Beita Iulian 2020년 11월 1일
Thank you very much!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by