Revolute Joints Block, State Tragets
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ashraf Omran
am 18 Aug. 2020
Beantwortet: Vasco Lenzi
am 27 Aug. 2020
When I have a value for "Specify Position Target" and I run the simulation, I don't get the same value from the sensor. Any idea, how can I set the mechanism at a specific revolute joint angle?
1 Kommentar
Vasco Lenzi
am 24 Aug. 2020
Are you using PS-Simulinkconverter to look at the angle? Or Simulink-PS converter to feed position to the joint? Are all of the SI units correctly handled between Simscape and Simulink (eg rad vs deg)?
Cheers
Vasco
Akzeptierte Antwort
Vasco Lenzi
am 27 Aug. 2020
Closing the loop here. The main problem was the initial condition setting at different joint targets. You can check if a system initialized in the desired target by going to the Variable Viewer:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/352421/image.png)
And then checking if the system could initialize correctly:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/352424/image.png)
Usually relaxing some of the target leads to the system initalizing correctly.
0 Kommentare
Weitere Antworten (1)
Ashraf Omran
am 24 Aug. 2020
2 Kommentare
Vasco Lenzi
am 24 Aug. 2020
Hi Ashraf
thanks for answering the questions.
feel free to attach the files on this topic. That may be best since more people may chime in to help
Vasco
Siehe auch
Kategorien
Mehr zu Assembly finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!