2.1 Defining a project         

At this point, start RaPID by typing

>> rapid
at the Matlab command prompt. Figure 2.1 pops up. Select ``Simulink'', since this tutorial example is in Simulink mode (see Sections 8.7 through 8.8 for some examples in File mode).


  
Figure 2.1: The RaPID startup window with the three interaction modes. Select ``Simulink'' to start RaPID in Simulink mode.
\begin{figure}
\centering
\includegraphics [width=11.1cm]{line1.ps}
\end{figure}


Independent of the mode you start RaPID in, the first step to take is to define a RaPID project. This project bundles all necessary information related to the control problem at hand. Defining a project can be done by either starting a new project (see below and Section 3.1), by loading a previously saved project (Section 3.2.2) or by using one of the pre-defined demo projects (Chapter 8).

In this tutorial problem, you will control the speed of a ski lift. It has to be accelerated from 0 to 10 km/hour. Afterwards, the speed should stay as constant as possible. The ski lift is powered by a diesel motor. With the throttle of this motor you determine the force applied to the lift. The whole is modeled (simplified) as a first order system with delay. Note that this model could just as well describe a simplified model for a chemical reaction, an electrical motor, a heating process etc....

Use File $\rightarrow \;$New Project to pop up the ``New Simulink Project'' window of Figure 2.2 and fill out all necessary information (Figure 2.3):


  
Figure 2.2: The ``New Simulink Project'' window allows you to create a RaPID project from scratch.
\begin{figure}
\centering
\includegraphics [width=10.1cm]{line1.ps}
\end{figure}


Name:
type in ``SkiLift''
Notes:  
Clicking the ``Edit...'' button next to ``Notes'', pops up the ``Notes'' window, in which you can enter your process specific notes, for instance:
   My first RaPID project.
Section 3.1.1 contains more details about taking notes in RaPID.
Sample Time & Unit:
The sample time of the skilift controller is 0.5 seconds.
Simulink:  
Fill out the entries under Simulink (``File Name'' and ``Directory''). Hit the ``Browse...'' button and select the Simulink model ($RaPID denotes the directory RaPID was installed in. Do ``which rapid'' at the Matlab prompt to display this directory.):
   $RaPID\simulink\skilift.mdl
This model contains the simple first order process with dead time describing the skilift.
Process input:
Fill out the process input name ``Thrott'' (short for Throttle) and unit ``%''. The ``Minimum'' and ``Maximum'' inputs are equal to 0 and 100.
Process output:
The process output is the ``Speed'', measured in ``km/h''. The extreme values are 0 and 30.
After filling out this information, the ``New Simulink Project'' window of Figure 2.2 looks like Figure 2.3.  


  
Figure 2.3: The ``New Simulink Project'' window after it is filled out correctly. Hitting the ``OK'' button will create the tutorial project.
\begin{figure}
\centering
\includegraphics [width=10.1cm]{line1.ps}
\end{figure}


Have a look at the possible controller templates by hitting the ``Template...'' button in the lower left corner, but for now leave the settings as they are (Section 3.1.2 contains more information on controller templates).

Hit the ``OK'' button in the ``New Simulink Project'' window of Figure 2.3. The ``Open Loop Data Acquisition'' window now looks like Figure 2.4. Note how the process names and units show up in the configuration plot on top and in the plots at the bottom.


  
Figure 2.4: The ``Open Loop Data Acquisition'' window after you defined the tutorial skilift project.
\begin{figure}
\centering
\includegraphics [width=13cm]{line1.ps}
\end{figure}




Peter Van Overschee
1/21/1998