Accelerometer simulator on Simulink/Simscape

Hi everyone! I’m here to ask for help with a problem that I don’t know how to solve!
I would like to measure accelerations in my Simulink/Simscape model. Here’s how my model is structured:
1. A central cylinder rotating on its own with constant speed.
2. A cylinder with an offset, rotating on its own (with constant speed) and translating vertically (with a sinusoidal movement).
3. A small rectangle attached to the "outer" cylinder.
The mechanics are correct, and I’ve checked them using the Mechanics Explorer. I want to measure the accelerations of the small rectangle (which should be the same as the ones of the cylinder with the offset). I’ve used the Transform Sensor, which gives me the correct position, but the acceleration results seem a bit strange.
Is there a way or a block that I don’t know about that could return the acceleration (preferably three-axis) of my model?
I tried also to use the Three-Axis Accelerometer but to use that I should use the data coming from the Transform Sensor and this does not solve my problem...

댓글 수: 1

Yifeng Tang
Yifeng Tang 2024년 11월 20일
I wonder what you mean by the results being "strange". Do you have measured signal from an accelerometer that you can compare to?
One thing to check is the "measurement frame" of the transform sensor. The reading can be with respect to the F frame, B frame, world frame, and other two options. If you are comparing to an accelerometer reading and the accelerometer is mounted to the rotating cylinder, I think the measurement frame should be the F frame (whatever is connected to the small rectangle).
Just a thought. It's hard to be sure without seeing your model and a deeper understanding of the actual physical system.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 General Applications에 대해 자세히 알아보기

제품

릴리스

R2024a

질문:

2024년 11월 20일

댓글:

2024년 11월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by