The input signal (Requested Position) has following form:
Amplitude:1.1 mm;
Frequency: 1Hz.
The Simulink modell looks like this:![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1309855/image.png)
The transfer function block was estimated with Systemidentification Toolbox from the Requested Torque and Current Position signals from the real system:
Numerator: [-3.2239 52.4809];
Denominator: [1 0.09604 38.2613].
With default parameters Position Controller Kp=1, Speed controller Kp=1, Ki=1, I get following output signal(Curent Position)
My goal is to make Current Position signal as equal as possible to Requested Position. It should happen automated.
So I thought about using Control System Designer Toolbox with one of the automated tuning methods. Unfortunately I don't know much about control theory, so I don't really know which requirements I have to set to tune the controllers, so CurrentPosition looks as equal as possible as Requested Position.
I am also unsure if I should use P- and PI- controller or P- and PID.
Do someone have any suggestions, how I can adress the task of tuning of this cascaded loop?