Stop Simulink simulation when reached an oscillating steady state amplitude

6 vues (au cours des 30 derniers jours)
Alberto Mora
Alberto Mora le 22 Nov 2017
Commenté : Alberto Mora le 27 Mai 2020
Hello,
I would like stop a Simulink simulation if a signal reach the steady state in terms of amplitude of oscillations: at the start of the simulation the signal have got a generic transitory, but after some time the system reach the equilibrium and so the system reach steady state like approximativelly a sin(x) function with a constant amplitude.
I would like to compare the heigth relative difference between two near peaks and compare it by a threshold percentage, but I don't know how to do it. If someone have other ideas, please tell me.
Obviously this example is not usefull in this case, because I want to find a steady state of an oscillating system, and NOT a steady state of a signal that reach a target value.
To understand better what I mean, you can see two dinstinct examples (what I want to get is stop the simulation at green line time since signals are are dynamic steady state).

Réponses (1)

Fangjun Jiang
Fangjun Jiang le 27 Mai 2020
If you have this toolbox and can use this block, maybe you can look at the rate of change of the magnitude.
  1 commentaire
Alberto Mora
Alberto Mora le 27 Mai 2020
Wow, it seems pretty promising... I will try when I have time. Thank you.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by