How to run a periodic custom signal in simulink
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I created a custom signal to run in a simulink model using an embedded MATLAB Function. Now I would like to repeat this signal periodically for a certain amount of time. How can I implement the periodic repetition in Simulink? I thought to use a while-loop but it does not work.
Thank you for any idea!
0 Commenti
Risposte (2)
Kaustubha Govind
il 28 Feb 2013
You'll need to write your MATLAB Function so that it repeats the same operation periodically. How do you maintain the "state" of the block? Do you use a persistent variable, or use the Clock block?
2 Commenti
Kaustubha Govind
il 14 Mar 2013
Vera: I didn't mean for you to use the Clock block inside the While iterator. I was only asking how to maintain the state of the block.
Vedere anche
Categorie
Scopri di più su Sources in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!