5.2 Pre-processing       

Before you can use the measured input-output data for linear identification, they have to be pre-processed. This step is needed, to make the data as linear as possible (since RaPID identifies linear models). The pre-processing transforms the raw data into pre-processed data.

The Preprocessing window (Figure 5.3) pops up automatically when going from the ``Open Loop Data Acquisition'' window to the ``Identification'' window. It can also be started from the menu Identification $\rightarrow \;$Preprocessing or by hitting the ``Processing'' box in the configuration plot.

Each time a new set of data is measured, and you open the main ``Identification'' window, the measured data is designated as raw data and the ``PreProcessing'' window pops up automatically.


  
Figure 5.3: The ``PreProcessing'' window transforms the raw data (the measured data) into pre-processed data suitable for linear identification. This implies including a possible a-priori known integrator, filtering the signals to remove noise, removing initial and end effects and detrending the data.
\begin{figure}
\centering
\includegraphics [width=12.7cm]{line1.ps}
\end{figure}


Integrator   

When you known in advance that the system contains an integrator (positioning systems, level controls), it is advisable to remove the effect of the integrator from the data before identifying the model. This is done through differentiation of the output.

The identification is then performed on this derived signal (the speed). Afterwards, RaPID automatically adds the integrator. This means that only the determination of the model is done with the derived speed signal. All operations afterwards (model properties, model numerics, control design, ...) are done on the model with the integrator included .

The results of the identification procedure are sensitive to the inclusion of an integrator. The RaPID course notes explain in detail when you should add an integrator and what the consequences are.

Filtering   

In the next pre-processing step you can filter the data to get rid of unwanted disturbances in the data (noise, low frequency disturbances). With the ``Filter'' pop-up you control which signals are filtered (``None'', ``Input & Output'' or ``Output Only''). Once you decided to filter the signals, the ``Filter Type'' allows you to select a specific type of filter: ``Low Pass'', ``High Pass'', ``Band Pass'' or ``Band Stop''. Depending on the ``Filter Type'' you enter one or two cut-off frequencies. With the last entry you determine the order of the filter.

The filtering is done with a zero phase shift, which implies that there is as little time shift of the signal as possible. This is achieved by taking the average of the causal and anti-causal filtered signal.

Ranging    

After the derivation and filtering, you can remove unwanted initial and end effects in your data. You do this by removing parts of the data at the head and/or tail with the ``Start Time'' and ``End Time'' entries.

Detrending         

In the final pre-processing step, you determine which point you want to dynamically linearize your process around (The dynamic linearization process is explained at great length in the RaPID course notes.). Basically you should enter the working point of your process (the nominal values of input and output). This is a very important pre-processing step that should be done with care. The detrending consists of the subtraction of a constant value of the input and output data. There are however several possibilities: Note that wrong detrending can lead to very bad models, and it is thus important that you choose a sensible value.

The two plots at the bottom of the ``PreProcessing'' window show the processed output and input. You can select which signals are plotted by clicking on the titles above the plots.



Peter Van Overschee
1/21/1998