Finding area under the curve of a Simulink signal

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!

 Respuesta aceptada

Sebastian Castro
Sebastian Castro el 27 de Abr. de 2015

0 votos

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

Más respuestas (0)

Categorías

Más información sobre Simulation and Analysis en Centro de ayuda y File Exchange.

Preguntada:

el 26 de Abr. de 2015

Comentada:

el 18 de Sept. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by