How to change the coordinate system set in Simulink/Mechanics Explorer

60 visualizaciones (últimos 30 días)
Huy
Huy el 17 de Jun. de 2023
Respondida: Sahas Marwah el 18 de Jun. de 2023
I import the robot model that has previously set axes in Solidworks to Simulink via Simscape. But in the Mechanics Explorer window, the robot axes have been changed unlike what I have set in Solidworks. Please help me change the axis in Matlab/Simulink's Mechanics Explorer window to my liking. Thanks all

Respuestas (1)

Sahas Marwah
Sahas Marwah el 18 de Jun. de 2023
Hi @Huy,
In Mechanics Explorer, the coordinate system can be changed by modifying the block parameters. Here are the steps of doing it:
  1. Open the Simulink model that you want to modify and locate the Mechanics Explorer block that represents your physical system.
  2. Double-click on the block to open its parameter dialog and select the 'Coordinate Systems' tab.
  3. In the 'Coordinate Systems' tab, you can add or remove coordinate systems to the model by clicking the relevant buttons.
  4. To add a new coordinate system, click on the 'Add' button and specify the properties of the new coordinate system, such as its origin and orientation relative to the existing coordinate systems.
  5. You can also modify the orientation of the coordinate system using rotation/scaling/translation blocks, which allow you to modify the coordinate system about its x, y, or z-axis. These blocks can be added to the model and connected to the existing coordinate systems to modify their orientation.
  6. Once you have modified the coordinate system set, you can simulate the model to see the updated results.
You can also go through these documentation links for the same:
  1. https://in.mathworks.com/help/sm/ref/mechanicsexplorer-app.html - Mechanics Explorer
  2. https://in.mathworks.com/help/sm/ug/manipulate-the-visualization-viewpoint.html - Manipulate and Visualization Viewpoint

Categorías

Más información sobre Simscape Multibody en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by