7.3 Starting the Closed Loop Data Acquisition       

Apart from the reference signal, you also need to define the real time controller. This is the controller that will run in real time on the process or simulator. Typically, it is set to the designed controller when you switch from the ``Control Design'' window to the ``Closed Loop Data Acquisition'' window. Once you defined the real-time controller and the reference signal, you can start the experiment. Depending on the mode RaPID was started in, the experiment is conducted as follows:

From File: 
When you started RaPID in File mode, there is no direct communication between RaPID and a process or simulator. You should thus conduct the experiment completely off-line:

Simulink:  
When you started RaPID in Simulink mode, you start the experiment from the menu Experiment $\rightarrow \;$Start or by hitting the ``Start'' button in the configuration window (Figure 7.1). The designed reference signal is then applied to the augmented Simulink model (the Real Time controller is automatically added to the model) and the resulting process input and output signals are recorded (Note that the ``Start'' button only becomes visible after a valid project, reference signal and real time controller have been defined.).

You can stop the experiment at any point from the menu Experiment $\rightarrow \;$Stop or by hitting the ``Stop'' button (which appeared in place of the ``Start'' button). The part of the data that was measured until you stopped the experiment can still be used for further processing.

Real Time:  
When you started RaPID in Real Time mode, you start the experiment from the menu Experiment $\rightarrow \;$Start or by hitting the ``Start'' button in the configuration window (Figure 7.1). The real-time controller is automatically down-loaded to the hardware real-time device, the reference is applied to the resulting closed loop system and the process input and output data is automatically recorded by RaPID.

Just as for the Simulink mode, you can stop the experiment at any point from the Experiment $\rightarrow \;$Stop menu or by hitting the ``Stop'' button. The experiment is stopped immediately through the generation of an extra Non Maskable Interrupt (see the RaPID real time manual).



Peter Van Overschee
1/21/1998