Subsections

4.4 Loading and Saving Data  

4.4.1 Saving Data         

Once the data is measured, you save it from the menu File $\rightarrow \;$Save Measured Data. There are three different formats you can save the measured data in:

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

Matlab File:
When you save the data in a Matlab .mat file, it is saved in the following variables: When the data is successfully saved, the message area at the bottom of the ``Open Loop Data Acquisition'' window displays the variable names.

ASCII File:
In this case, you save the data in a text file. It is arranged in columns: first the process input (if it exists), then the process output (if it exists) and finally the reference signal (once again, if it exists). The file could have any extension, but the default extension is .txt.

When the data is successfully saved, the message area at the bottom of the ``Open Loop Data Acquisition'' window displays the exact order of the columns you saved the data in.

4.4.2 Loading Data         

You can load previously measured data and data that was measured off-line (back) into RaPID at any moment. There are three different formats you can load the measured data from:

RaPID format:
You easily load previously measured .dat files back into RaPID. Note that if the sample times of the current project and of the data 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 .mat file with data into RaPID, you can choose which variables are used as process input, process output and (optional) reference signals. The window which allows you to make this choice is the ``Data Specification'' window and is depicted in Figure  4.3. The sample time of the loaded data equals the project sample time.


  
Figure 4.3: The ``Data Specification'' window where you specify which variables out of a Matlab file are used as process input, output and (optional) reference.
\begin{figure}
\centering
\includegraphics [width=5.3cm]{line1.ps}
\end{figure}


ASCII format: 
When you load an ASCII file with data into RaPID, it is assumed that the different signals are arranged in columns (where the number of rows determines the number of time samples) or in rows (where the number of columns indicates the the number of time samples). You can choose which column (respectively row) to use as process input, output and (optional reference) via the ``Data Specification'' window of Figure 4.4. The file could have any extension, but the default extension is .txt. The sample time of the loaded data equals the project sample time.


  
Figure 4.4: The ``Data Specification'' window where you specify which columns (rows) out of an ASCII file are used as process input, output and (optional) reference.
\begin{figure}
\centering
\includegraphics [width=5.3cm]{line1.ps}
\end{figure}




Peter Van Overschee
1/21/1998