Revolute Joints Block, State Tragets
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ashraf Omran
el 18 de Ag. de 2020
Comentada: Siti Abyad
el 9 de Mayo de 2025
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 comentario
Vasco Lenzi
el 24 de Ag. de 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
Respuesta aceptada
Vasco Lenzi
el 27 de Ag. de 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:

And then checking if the system could initialize correctly:

Usually relaxing some of the target leads to the system initalizing correctly.
1 comentario
Siti Abyad
el 9 de Mayo de 2025
Hi, Im having a similar problem. but wierdly when I open variable viewer, the targets are not the same as that which i set on my simscape revolute joint, and the status is still green, and the priority level is set to none, and the target column is just empty, even though I haved filled in and checked the state targets section on each joint.. Is there a possible solution to this?
Más respuestas (1)
Ashraf Omran
el 24 de Ag. de 2020
2 comentarios
Vasco Lenzi
el 24 de Ag. de 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
Ver también
Categorías
Más información sobre Assembly en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!