Subsections

5.4 Loading and Saving  

5.4.1 Saving Models         

Once a model is identified, you save it from the menu File $\rightarrow \;$Save Model. There are two different formats you can save the model in:

RaPID format:
The model is saved in a RaPID file with extension .mod. You can easily load the model back into RaPID, since all necessary RaPID information is saved with it.

Matlab format: 
When you save the model in a Matlab .mat file, it is saved in the following variables: num and den are the numerator and denominator of formula (5.2), but transformed to positive powers of z, as is the convention within Matlab.

When the model is successfully saved, the message area at the bottom of the ``Identification'' window displays the variable names.

5.4.2 Loading Models         

You can load previously identified models and models that were identified using other identification packages into the RaPID benchmark model (see Section 5.5.2) or as controller design models (see Section 6.6.4) There are two different formats you can load the model from:

RaPID format:
You can easily load previously identified .mod files back into RaPID. Note that if the sample times of the current project and of the model to be loaded are not compatible, the sample time of the project has priority (a warning is issued).

Matlab format:  
When you load a Matlab file with data into RaPID, you choose which variables are used as numerator, denominator and (optional) working point (nominal operating point). The window which allows you to make this choice is the ``Model Specification'' window and is depicted in Figure 5.6. The constraints on the Matlab model are as follows:


  
Figure 5.6: The ``Model Specification'' window where you specify which variables out of a Matlab file are used as numerator, denominator and (optional) working point (nominal operating point).
\begin{figure}
\centering
\includegraphics [width=5.3cm]{line1.ps}
\end{figure}


5.4.3 Saving Identification Data    

You can save all signals related to the identification process to a Matlab file with the menu entry File $\rightarrow \;$Save Identification Data. This is useful when you need for instance the pre-processed data somewhere else (for instance to apply another identification algorithm). The signals are saved in the following variables:

When the data is successfully saved, the message area at the bottom of the ``Identification'' window displays the variable names.



Peter Van Overschee
1/21/1998