Flip-Flop simulation

4 vues (au cours des 30 derniers jours)
Beita Iulian
Beita Iulian le 1 Nov 2020
Commenté : Beita Iulian le 1 Nov 2020
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.

Réponse acceptée

stozaki
stozaki le 1 Nov 2020
Modifié(e) : stozaki le 1 Nov 2020
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 commentaire
Beita Iulian
Beita Iulian le 1 Nov 2020
Thank you very much!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur General Applications dans Help Center et File Exchange

Tags

Produits


Version

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by