Simulink Switch doesn't propagate rate transition
조회 수: 5 (최근 30일)
이전 댓글 표시
How can I make a Simulink Switch to propagate rate transition?
Right now I have two signal paths, of variable rates, with the rate determined by some condition:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1380724/image.png)
However, the rest of the chain doesn't work, because the switch doesn't maintain the rate (or so SL thinks)
Also, there isn't a way to have a rate block with an input pin that defines the rate, so I can't adjust the rate via a dynamic input instead.
What's the right way to switch rates while the sim is running?
댓글 수: 0
답변 (1개)
Fangjun Jiang
2023년 5월 12일
Not sure what you exactly mean, but a Signal Specification block can specify any rate you want.
댓글 수: 7
Paul
2023년 6월 1일
What is the concern at the output of the switch? That signal as has an FiM sample time, but will still obey the sample time of the selected signal at the times when the output signal from the switch is used, won't it?
참고 항목
카테고리
Help Center 및 File Exchange에서 Discrete Events and Mode Charts에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!