A resettable Delay in SIMULINK
Mostra commenti meno recenti
Hello,
I am trying to implement a logic from its timing diagram. I have a signal that will follows the input n seconds after it (input) rises from 0 to 1. When the input goes from 1 to 0, the output simply follows.
I have thought about using a resettable delay, but cannot find a suitable way of adjusting the delay time. My specs are as follows:
Input = discrete Output = discrete
Delay time = 0.15 seconds
condition = output will be the delayed version of input when input 0->1 otherwise output = input
Could someone point me to the right direction?
Risposte (2)
Kaustubha Govind
il 17 Lug 2013
1 voto
You can use a Triggered Subsystem to detect the transition of your input from 0 to 1 (assuming that your input is a binary signal).
3 Commenti
Mohammed Manna
il 22 Lug 2013
Kaustubha Govind
il 22 Lug 2013
Mohammed Manna
il 7 Ago 2013
Guy Rouleau
il 17 Lug 2013
1 voto
If you signal is discrete, the Delay block allos you to delay it form a number of samples coming form an input signal:
If the signal is continuous, try with the variable transport delay:
2 Commenti
Mohammed Manna
il 22 Lug 2013
Mohammed Manna
il 7 Ago 2013
Modificato: Mohammed Manna
il 7 Ago 2013
Categorie
Scopri di più su Signal Generation in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!