Finding area under the curve of a Simulink signal

18 vues (au cours des 30 derniers jours)
Travis Dopp
Travis Dopp le 26 Avr 2015
I am trying to find the best (easy) way to find the area under a curve for a time series in Simulink. I do not have a function for the data as it is results extracted from a Revolute Joint. I want to determine the area under the curve produced if the simulation ran for 1 hour. What is the best way to do this? I tried converting to a physical signal and using the PS integrator but ran into the error below. Any help is greatly appreciated! Thank you!

Réponse acceptée

Sebastian Castro
Sebastian Castro le 27 Avr 2015
The error you get is because you need a Solver Configuration block on that Simscape network with the PS Integrator and the 2 converter blocks. If you have multiple Simscape networks in your model that are completely independent, each requires a separate Solver Configuration block.
That being said, I would just use a regular Integrator block (not a PS Integrator blocks) to do that calculation. This block is in the Simulink > Continuous library.
- Sebastian

Plus de réponses (0)

Catégories

En savoir plus sur Simulation 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!

Translated by