How can I give motion to base in simscape?

12 views (last 30 days)
서호 이
서호 이 on 2 May 2023
Commented: 서호 이 on 17 May 2023
Hello
Normally base is fixed about world frame, but If i want to give motion(acceleration, velcoity) to base what should I do?

Answers (1)

Vijeta
Vijeta on 15 May 2023
In Simscape, the base of a model is typically fixed by default. However, if you want to give motion to the base, you can use a Joint block to introduce the desired motion. Here's how you can achieve that:
  1. Open your Simscape model in Simulink.
  2. Locate the base component that you want to give motion to.
  3. Add a Joint block from the Simscape Multibody library to the model. This block represents the joint that will provide the desired motion to the base.
  4. Connect the Joint block to the base component by selecting the appropriate connection point on the base component and the Joint block. The connection can be established by clicking and dragging from the output port of the Joint block to the input port of the base component.
  5. Configure the Joint block to define the type of motion you want to apply to the base. You can set the joint type to Revolute, Prismatic, or another type depending on the desired motion. You can also set the desired initial conditions, such as position, velocity, or acceleration, depending on your requirements.
  6. Connect any necessary sensors or actuators to the Joint block or other components in your model, if needed.
  7. Set up and run your simulation to observe the motion of the base according to the applied joint motion.
By adding a Joint block and configuring its properties, you can introduce motion to the base component in your Simscape model. The specific steps may vary depending on your model structure and requirements, but this general approach should guide you in giving motion to the base in Simscape.
  1 Comment
서호 이
서호 이 on 17 May 2023
Actually I did implement like your advice, I wasn't sure that I'm right. Thank you for kind answer!

Sign in to comment.

Tags

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!