Simulink Switch doesn't propagate rate transition
4 views (last 30 days)
Show older comments
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:
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 Comments
Answers (1)
Fangjun Jiang
on 12 May 2023
Not sure what you exactly mean, but a Signal Specification block can specify any rate you want.
7 Comments
Paul
on 1 Jun 2023
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?
See Also
Categories
Find more on Discrete Events and Mode Charts in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!