

I'll type in "electro" and then select the rotational electromechanical converter. We then need a block that will convert between electrical and mechanical energy. I'll click and drag to create an electrical connection and then type in "resistor," and then select the resistor component. The next thing that we'll need is a resistor. I'll click in the diagram and type in "DC voltage source," and then select the component from a list. To model our DC motor, the first thing that we'll need is a DC voltage source. It also adds a few of the blocks commonly used in Simscape. Using the command ssc_new opens up a Simulink model with the settings recommended for Simscape models. We'll use the MATLAB command ssc_new to open up a new Simulink model. And when we run the simulation, we will see how the motor reacts as it acts against a spring. We wish to model this system with electrical and mechanical effects. The system we wish to model looks like this- a DC motor that has two electrical connections and two mechanical connections, including one connection that can translate along an axis. In this demonstration, we're going to see how we can use Simscape to model a DC motor.
