How to run a periodic custom signal in simulink
이전 댓글 표시
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!
답변 (2개)
Azzi Abdelmalek
2013년 2월 28일
0 개 추천
You can use a repeated sequences block
댓글 수: 3
Vera
2013년 2월 28일
Azzi Abdelmalek
2013년 2월 28일
Post your model and your embedded function
Vera
2013년 3월 14일
Kaustubha Govind
2013년 2월 28일
0 개 추천
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
Vera
2013년 2월 28일
Kaustubha Govind
2013년 3월 14일
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.
카테고리
도움말 센터 및 File Exchange에서 Sources에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!