In this paper, the design and performance investigation of the permanent magnet machines have been done to increase the mechanical and electrical outputs improvement of the systems. A permanent magnet Dc motor (PMDM) and generator (PMDG) have been modelled and designed to improve the angular position and generated current respectively. In this work, augmentation based H 2 optimal and H infinity synthesis controllers have been designed as a controller for the two systems and a comparison between the proposed controller for tracking a reference inputs and a promising results have been obtained.