Now that you have designed your first RaPID controller, you will refine it and try out different controllers. In this section, you first re-identify the model from closed loop measured data. Then you re-design a number of different controllers.
In some cases it is very hard or even impossible to do an open loop experiment as in Section 2.2. Closed loop experiments however, are almost always within the range of possibilities. With the data of such a closed loop experiment (Figure 2.15), you can just as well identify the open loop linear model. Hit the identification button in the ``Closed Loop Data Acquisition'' window of Figure 2.15. The ``Identification'' window pops up with the ``PreProcessing'' window on top of it. Hit the ``OK'' button, and RaPID computes a model for you. The identified model has a delay of 1 second, one pole and no zero (the error is 1.6 %).
At this point, when you are not really sure about the model
structure you have to select, you can resort to a parameter sweep (see
also Section 5.7). Select the menu Identification
Parameter Sweep or hit the ``Identification'' box in the configuration
window. The ``Identification Parameter Sweep'' window pops up. This
window allows you to compute a whole batch of models with different
structures. Hit the ``Start'' button at the lower left corner, and
watch how easy it is to compute 42 different models. The resulting
window is displayed in Figure 2.16.
After the computation of all models, the identification errors for the selected structures are displayed. When moving the mouse over the bar graph, the corresponding structure is displayed in the top right of the window. You should select the structure with the lowest complexity (The complexity is the sum of number of poles and zeros. A delay does not count.) and a small error. You can find this structure by moving the mouse from the right to the left over the plot. The structure with the lowest error (the one on the far right side) is 0.5/2/2 (indicating a delay of 0.5 seconds, two poles and two zeros). However, moving to the left with the mouse, you see that the structure 1/1/0 has a very comparable error but a lower complexity (less parameters). Select this structure (click with the left mouse button) and hit the export button (lower left of the window). The new model is computed and displayed in the main ``Identification'' window.
Now turn your attention again to the ``Controller Design'' window
(hit the ``Controller'' button in the task bar or use the menu RaPID
Control Design). Hit ``OK'' in the ``Control Design Parameters''
and the ``Design Reference Definition'' window.
Select the menu entry Controller
Pre Design (see
Section 6.5). This pops up the ``Pre Design'' window of
Figure 2.17. Select the ``Fast Chien Hrones
Reswick'' pre-design rule and look at the resulting signals in the
main ``Control Design'' window. Clearly the tuning rule does not
deliver satisfactory results (this is due to the large delay in the
system). Note that the previous design is also plotted as a dotted
line. This allows for an easy comparison between the current and
previously designed controller. Try out some other tuning rules and
find that many of them compute non-stabilizing controllers.
Since this controller performance is clearly not satisfactory, you should return to the RaPID designs. Close the ``PreDesign'' window and hit the ``RaPID'' button which appears in the main ``Control Design'' window (on top of the plots).
Now you will change the controller structure. Open the
``Controller Structure'' window from the menu Controller
Structure
or by hitting the ``Controller'' box in the configuration plot of the
``Control Design'' window (see also Section 6.2.2).
Figure 2.18 shows how the ``Throttle'' is computed on
the basis of the ``Reference Speed'' and the ``Measured Speed''. The
standard selection is a controller with an ``Integral (I)'' term
working on the ``Error'' (the middle box in
Figure 2.18), a ``Proportional (P)'' term working on
the ``Reference Speed'' and the ``Measured Speed'' (the two
proportional terms are different though) and a ``Derivative (D)'' term
on the ``Measured Speed'' only. If needed, you can now change this
structure. For instance, if you want the PID to act purely on the
``Error'', you should select in the middle box ``PID'', and a ``0'' in
the ``Feedback'' and ``Feedforward'' box (as in
Figure 2.19).
Hit the ``OK'' button in the ``Controller Structure'' window. The new controller is automatically computed. When you inspect the signals in the main ``Control Design'' window, you will note that there is not much difference between the two controllers with the different structures (compare the full lines with the dotted lines).
In a similar way, the controller structure can be reduced to a ``PI'' or ``PD'' controller. You can even include a ``Double Derivative'' term, which is very useful when controlling integrating processes. See Section 6.2.2 and the RaPID course notes for more details.
Finally, you can fine tune the controller with the design parameters ``Robustness'' and ``HF Gain'' in the main ``Control Design'' window. The meaning of these parameters is roughly as follows: the ``Robustness'' is related to the gain and phase margins of the controlled system. A high robustness implies a higher guaranteed gain and phase margin and vice versa (see Section 6.3.3 and Table 6.3). The ``HF Gain'' which is short for ``high frequency controller gain'', stands for the sensitivity of the process input to measurement noise. Roughly, it means that a disturbance signal with amplitude 1 added to the ``Speed'' will be amplified with a factor ``HF Gain'' towards the ``Throttle''. So, a high ``HF Gain'' implies a high noise sensitivity and vice versa (see Section 6.3.3).
Often, there are specifications given that
determine one or both parameters. If not, you can play around with
them, until you find a good solution. Alternatively, just as for the
identification parameters, you can apply a parameter sweep. Select
the menu Controller
Parameter Sweep to start the ``Controller
Parameter Sweep'' window. Then select a ``Robustness'' range from 55
% to 80 % in 6 intervals and a ``HF Gain'' range from 2 to
20 in 3 intervals. Hit the ``Start'' button. 18 different
controllers are now computed, and ordered towards descending settling
time (since you originally specified that the settling time should be
optimized in the ``Control Design Parameters'' window of Figure
2.11). This results in Figure 2.20.
Now select the most right bar in the plot by clicking on it, and hit the export button. The new controller is computed and displayed in the main ``Controller Design'' window. It clearly has a shorter settling time than the previously designed controller.