Tracking Increments in Signals

2 vues (au cours des 30 derniers jours)
Andy Wileman
Andy Wileman le 15 Mai 2021
Commenté : Andy Wileman le 17 Mai 2021
Hi,
I'm trying to design a Simulink Model to detect increments in a signal, which I have sucessfully implemented (see picture below and attached Simulink Model). My problem is that when I use the Model in conjunction with a Simcape circuit, I always get an initial overshoot as the Simscape circuit starts running (see picture below (bottom)). The Simulink model then takes this as the start point, then the Simscape model output drops back down and I can't detect any further increments.
I've tried using a delay to supress this, but it doesn't work. Does anyone know of any modifications I can make, either to my Simcape Model to avoid the initial overshoot, or to the Simulink Model so it can avoid the overshoot.
Kind regards,
Andy
  2 commentaires
Mathieu NOE
Mathieu NOE le 16 Mai 2021
hello
in your simulink model , why not use a switch so that the simscape signal gets inot the simulink code only after a certain time ?
Andy Wileman
Andy Wileman le 17 Mai 2021
Hi Mathieu,
That's an excellent idea, I'll give it a go.
Kind regards,
Andy

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing 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