The present invention is a novel device, system, and method for
simultaneous selection of filters and loop proportional gain for a closed
loop system. According to an exemplary embodiment of the present
invention, a method provides an automated selection of the portion of the
controller known as the speed loop compensator. The method may operate on
a frequency response function that represents the dynamic response from
an actuation force (e.g. motor torque) to the sensor used for feedback of
speed control (e.g. motor encoder angle). The frequency response function
may be represented as a series of complex numbers each with a
corresponding frequency value. The tuning method determines the
combination of filter parameters that allows the loop proportional loop
gain (K.sub.p) to be maximized while meeting a specified set of criteria
for stability margins. Methods for selecting integral gain and reference
model are also presented.