Pulling from continuously changing variable every x seconds
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Katarina Vuckovic
le 10 Avr 2020
Réponse apportée : Guru Mohanty
le 14 Avr 2020
I have a "ramp source" as an input to a function. The input is changing to fast for the tasks within the function. Therefore I was to "pull" the ramp input value every x seconds and use that value as an input for the function.
0 commentaires
Réponse acceptée
Guru Mohanty
le 14 Avr 2020
I understand you want to take data from the ramp source in a specific time interval. To do this a Pulse generator and a Sample & Hold block is required. In the pulse generator you can set the time interval in which you want to pull the data. And the Sample & Hold gives value of the ramp source at a specific time.
I have attached a sample Simulink model for it.
0 commentaires
Plus de réponses (0)
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!