SimMechanics    

Building a Simple Pendulum

In this first tutorial, you drag, drop, and configure the most basic blocks needed for any mechanical model, as well as add some sensors to measure motion. The tutorial guides you through these aspects of model-building:

The end result is a model of a simple pendulum. The pendulum is a swinging steel rod. We strongly recommend that users work through this tutorial first before moving on to the next section, Visualizing a Simple Pendulum.

A Simple Pendulum: A Swinging Steel Rod

Opening the SimMechanics Block Library

Following one of the ways described earlier in the Viewing the Blocks section in this chapter, open the SimMechanics library. Then from the SimMechanics library, open a new, empty Simulink model window.


  Essential Steps to Configure and Run a Model The World Coordinate System and Gravity