How can control the phase delay of the signal generated by "Pulse Generator" block externally?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Seyedfoad Taghizadeh
le 7 Fév 2014
Commenté : Niklas Nylén
le 18 Fév 2014
Hi friends,
I want to generate a square wave by using pulse generator block in simulink where phase delay is coming from an external source. As you know the phase delay of the output signal of this block can be set internally. Is it possible to control the phase delay of this block by a external signal?
Regards Foad
0 commentaires
Réponse acceptée
Niklas Nylén
le 7 Fév 2014
Modifié(e) : Niklas Nylén
le 7 Fév 2014
If you have a limited range of number of samples that your signal should be delayed you could build a block for variable delay using a number of unit delays and a multiport switch. I have attached a model which could handle between 0 and 10 samples of delay (although I have not verified it more than that it is simulatable).
2 commentaires
Plus de réponses (2)
ES
le 7 Fév 2014
When the external signal comes, do a
set_param(BlockName,'PhaseDelay',PhaseDelayValue);
Niklas Nylén
le 7 Fév 2014
If I understand your question correctly it could probably be solved by placing a "Variable time delay" block after the pulse generator block and connect the external source to that block.
Voir également
Catégories
En savoir plus sur Sources dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!