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

50 visualizzazioni (ultimi 30 giorni)
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

Risposte (1)

Sahas Marwah
Sahas Marwah il 18 Giu 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

Categorie

Scopri di più su Simscape Multibody in Help Center e File Exchange

Prodotti


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by