How to set initial position of prismatic joint
Show older comments
"I'm currently controlling a linear actuator model in Simulink, and I want to set an initial position offset of 0.5 meters in the base coordinate system for the prismatic joint using the 'specify position target' option, so that it starts 0.5 meters higher. Is this the correct way to set it? Or is there another way to set the initial position? If so, could you please let me know?"
Answers (1)
Shivam Gothi
on 21 Aug 2024
0 votes
Hi,
In Simulink, the joints can start simulation from different states. For example, the prismatic joint of your model can start at any value from its lower limit to the upper limit. As a result, during model assembly, you can set the initial state of the actuator by specifying “state targets” in the “prismatic joint block” dialog boxes.
Follow the below given steps :
- Open “Block parameters” for prismatic joint.
- Then look for “Z Prismatic Primitive (Pz)” property. Expand the corresponding drop down menu.
- Then find the property “State Targets” and again expand the corresponding drop down menu.
- Select the check box “Specify Position target”
- Two fields will appear:
- Priority: a ranking that determines which of two state targets to satisfy if they prove to be mutually incompatible. You can set the priority level to Low or High.
- Value: Initial state from which simulation starts.
- Enter value of 0.5 and set the units to meter “m”.
This will set the initial actuator position at 0.5m.
Please Refer to the following documents for more information:
You could also refer to this post on MATLAB answer community for more information:
I hope this helps !
Categories
Find more on Simscape Multibody in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!