# Simscape Driveline Ideal Motion Sensor - Calculating Acceleration

5 Ansichten (letzte 30 Tage)
Peter Zach am 2 Apr. 2021
Kommentiert: Stefan Ondocko am 11 Mär. 2022
When using driveline I can easily output the position and velocity of a mass with an ideal translational motion sensor: https://www.mathworks.com/help/physmod/simscape/ref/idealtranslationalmotionsensor.html?searchHighlight=ideal%20motion%20sensor&s_tid=srchtitle
However, to get the acceleration of the mass, I need to convert to simulink and differentiate the signal. This is not a major problem but my questions are as follows:
How can I be confident I am not introducing error by numerically differentiating?
Why doesn't the "Ideal Motion Sensor" supply the acceleration as an output? I would think the equations of motion include acceleration and it is integrated to get velocity and position.
Peter
##### 0 Kommentare-2 ältere Kommentare anzeigen-2 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

### Antworten (1)

Juan Sagarduy am 8 Apr. 2021
Hi Peter
This is good feedback, maybe there should that option in the sensor. But this can be solved by adding that into a modified component (Simscape language) with acceleration output. Let me know if u need a hand.
Cheers Juan
##### 3 Kommentare1 älteren Kommentar anzeigen1 älteren Kommentar ausblenden
Juan Sagarduy am 9 Apr. 2021
Hi Peter,
Find attached the implemntation of the sensor in a test model.
We have a 1-day course on Simscape where you can learn how to create your own components/domains. See link below:
Br Juan
Stefan Ondocko am 11 Mär. 2022
Hi, You can also use the Derivative (dv/dt => a) on the "Simulink" side or the Ideal Force Sensor and calculate the acceleration (F/m = a) on the measured object

Melden Sie sich an, um zu kommentieren.

### Kategorien

Mehr zu Simscape Driveline finden Sie in Help Center und File Exchange

R2020b

### Community Treasure Hunt

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

Start Hunting!

Translated by