Holding a value for a specific time with zero order hold block in Simulink

2 vues (au cours des 30 derniers jours)
Vijay
Vijay le 17 Août 2018
Modifié(e) : Vijay le 17 Août 2018
I want to hold the newest peak (the last peak – input changing from 0 to 1) for an hour. I used the zero order hold Block for that purpose (sample time 3600s). But the problem with zero order hold block is, it sometimes omits the peak and I am not getting why it does that.
As you see in the attached picture, the blue line is the held curve and the red one is the input. One can see that, in the places where I marked wrong, the peak is not held as wanted it to.
Anybody has experience with this matter?

Réponses (0)

Catégories

En savoir plus sur Event Functions dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by