Documentation

Update and Simulate a Model

Create or Open a Model

You can create a model manually or import it from a supported CAD application. For an example showing how to create a model manually, see Model an Open-Loop Kinematic Chain. For an example showing how to import a model, see Import a Robotic Arm CAD Model.

Update the Block Diagram

In the Simulink® menu bar, select Simulation > Update Diagram. Mechanics Explorer opens with a static visualization of the model in its initial state.

Examine the Model Assembly

Check the model assembly in the visualization pane of Mechanics Explorer. Look for bodies placed and oriented in unexpected ways. Use the Simscape™ Variable Viewer or the Simscape Multibody™ Model Report to identify any assembly issues. For an example showing the use of Model Report, see Model a Closed-Loop Kinematic Chain.

Configure the Solver Settings

In the Simulink menu bar, select Simulation > Model Configuration Parameters. Pick a solver and specify the desired step sizes. Ensure that the time steps are small enough to accurately capture the fastest meaningful changes in your model. Use care, though, as small time steps slow down simulation.

Run Simulation and Analyze Results

In the Simulink menu bar, select Simulation > Run. Mechanics Explorer plays a physics-based animation of your model. Examine any data generated during simulation, for example, through Simulink Scope plots. For an example showing how to work with sensing data from a model, see Sense Motion Using a Transform Sensor Block.

Was this topic helpful?