1.3 Interfacing with RaPID     

RaPID is equipped with two interfaces to the real world (file transfer and real time operation) and with an interface to Simulink (simulating the real world). These are also the three options presented at startup of RaPID (after typing rapid at the Matlab prompt).

From File   

When you start RaPID From File, all interaction with the real world is through file transfer (Matlab or ASCII files). This implies that the open loop data acquisition and the closed loop validation have to be done off-line. You save the experimental data into a transferable file and read it into RaPID. Figure  1.2 gives an overview of the different stages for the From File mode.


 
Figure 1.2: An overview of the four RaPID stages when you start RaPID in the From File mode. All data acquisition and interaction with the real world is done manually through file transfer. 
\begin{figure}
% latex2html id marker 201

 
\setlength {\unitlength}{1cm}
 
 \b...
 ...}(7,0.75)(11,0.75)
 \put(7.1,0.75){\vector(-1,0){0.1}}\end{picture} \end{figure}

Simulink   

Starting RaPID in Simulink mode, allows you to seamlessly interact with a Simulink model. This model (which could be a very complex, non-linear description of the reality) is used as a simulator of the real world.

The open loop experiment is performed by simply (and automatically) sending an input to the Simulink model. The output is recorded and sent back to RaPID for further use. The same holds for the closed loop validation stage, where the designed controller and reference signal are automatically applied to the Simulink model to assess the quality of the linear controller. This is illustrated in Figure 1.3.


 
Figure 1.3: An overview of the four RaPID stages when you start RaPID in Simulink mode. All data acquisition and simulation of the Simulink model is done automatically at the click of a button. 
\begin{figure}
% latex2html id marker 240

 
\setlength {\unitlength}{1cm}
 
 \b...
 ... % (11,0.75)(7,0.75) 
 \put(11,0.75){\vector(-1,0){4}}\end{picture} \end{figure}

Real Time   

Finally, with RaPID started in Real Time mode, direct interaction with the real world becomes possible. Starting and stopping experiments means in this case sending and receiving data directly from an industrial control device: an input-output board, an industrial PID controller, a PLC or a DCS. All file transfer or retyping of controller parameters is eliminated. For input-output boards, the controller is guaranteed to run in real-time up to 40 kHz. Figure 1.4 illustrates the RaPID real-time principle.


 
Figure 1.4: An overview of the four RaPID stages when you start RaPID in Real Time mode. All data acquisition and down-loading of controllers is done through the real time connection with the industrial control device. RaPID supports input-output boards, industrial PID controllers, PLC's or DCS's.  
\begin{figure}
% latex2html id marker 269

\setlength {\unitlength}{1cm}
 
 \beg...
 ... % (11,0.75)(7,0.75) 
 \put(11,0.75){\vector(-1,0){4}}\end{picture} \end{figure}



Peter Van Overschee
1/21/1998