The dynamic response of a slider-crank mechanism which is driven by a separately-excited DC motor is studied in this paper. The rod and crank are assumed to be rigid. The Hamilton’s principle and Lagrange multiplier method are applied to formulate the equation of motion. Reducing the differential-algebraic equations and employing the Runge-Kutta numerical method, the dynamic response of the mechanism motion and armature current are obtained. Finally, numerical examples show the dynamic response of the different quality including the angular velocities, angular acceleration of crank, and armature current and results are compared to give good picture for the slider-crank mechanism.