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

조회 수: 60 (최근 30일)
Huy
Huy 2023년 6월 17일
답변: Sahas Marwah 2023년 6월 18일
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

답변 (1개)

Sahas Marwah
Sahas Marwah 2023년 6월 18일
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

카테고리

Help CenterFile Exchange에서 Simscape Multibody에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by