Why does the rate limiter's output change slower than the specified limit?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mohamed Elasmar
le 8 Jan 2024
Déplacé(e) : Angelo Yeo
le 8 Jan 2024
Hello,
I am developing a model in simulink as follows:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1584866/image.jpeg)
The signal of (i) given to Block_2 and Block_3 should increase from 0 to 800 with a rising rate of 1.3889 after a step time of 180. Therefore, I connect a step signal to a rate limiter as shown in the figure and define the inputs to them as follows:
- Step signal
Step time = 180, Initial value = 0 and Final value = 800.
- Rate limiter
Rising slew rate = 1.3889, Falling slew rate = 0 and Sample time mode "continuous".
The results of the model in Output.mat show values of (i) as follows:
- From point 1 to point 181 → i = 0
- At point 182 → i = 2.5264*10^-12
- At point 183 → i = 5.0527*10^-12
- At point 184 → i = 1.3889 and it continuously increseas with the rate of 1.3889 afterwards (e.g. at point 185 → i = 2.7778, etc.).
My question is, why does (i) not follow the rising rate of 1.3889 starting from point 181 and why does it give the two strange values at points 182 and 183?
Please note that I am using the solver of ode23t with a max. step size of 1.
I would be really grateful if someone helps me in solving this issue.
Thank you in advance.
0 commentaires
Réponse acceptée
Mathieu NOE
le 8 Jan 2024
Déplacé(e) : Angelo Yeo
le 8 Jan 2024
hmm
I wonder if this is caused by having a variable step size
what if you force to fixed step size ?
2 commentaires
Mathieu NOE
le 8 Jan 2024
Déplacé(e) : Angelo Yeo
le 8 Jan 2024
good !
glad I could be of some help
have a good day
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Prepare Model Inputs and Outputs 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!