Subsections

A.1 General Input-Output Boards       

Available in Real Time mode. The controller formula's are the same as the general controller formula's of Section 6.2.1.

A.1.1 Controller Template    


  
Figure A.1: Real-time input-output board hardware template.
\begin{figure}
\centering
\includegraphics [width=11cm]{line1.ps}
\end{figure}


All input-output board templates are very similar to the general template, as described in Section 6.2.1 and shown in Figures 6.3 and 6.4. For a detailed description of the hardware and connections of the boards, we refer to the RaPID real time manual. The template's parameters, on top of the parameters of the general controller templates (Section 6.2.1) are (Figure A.1):

Safety Input:
The process input the controller has to send to the process after the experiment is concluded or when the ``Stop'' button is hit.

Process Input Configuration:
This buttons allows you to completely configure the process input. See also Section  A.1.2.

Process Output Configuration:
This buttons allows you to completely configure the process output. See also Section  A.1.3.

A.1.2 Process Input Configuration     

The Process Input Configuration window (Figure A.2) is launched when you hit the ``Process Input Configuration'' button in the ``Controller Template'' window of Figure A.1. It conditions the process input as computed by RaPID before it is sent to the input-output board. The window contains from left to right (from RaPID to the Real World):


  
Figure A.2: The ``Process Input Configuration'' window.
\begin{figure}
\centering
\includegraphics [width=11.6cm]{line1.ps}
\end{figure}


Gain & Bias:  
Gain and bias correction according to the formula y = G x + B.
Hardware:   
Hardware specific data, depending on the process input type. Clicking the block launches one of the windows below: 
Input Type:
The type of the process input, which could be ``Analog'' or ``PWM''.

A.1.3 Process Output Configuration     

The ``Process Output Configuration'' window of Figure A.5 is launched when you hit the ``Process Output Configuration'' button in the ``Controller Template'' window of Figure A.1. It conditions the signals measured by the input-output board and computes the process output used inside RaPID. The window contains from left to right (from the real world to RaPID):


  
Figure A.5: Process Output Configuration window.
\begin{figure}
\centering
\includegraphics [width=7.4cm]{line1.ps}
\end{figure}


Channel Blocks:   
Two channel blocks A and B. Although RaPID only accepts one signal as process output, this signal can consist of a fairly complex combination of two measured outputs. These two process outputs are labeled Channel A and B. Hitting any of the Channel boxes, launches the ``Channel Configuration'' window of Figure A.6. This window contains from left to right:


  
Figure A.6: The ``Channel Configuration'' window.
\begin{figure}
\centering
\includegraphics [width=9.6cm]{line1.ps}
\end{figure}


Channel Type:    
``Analog'', ``Counter'' or ``Off''. This is the type of the process output.
Hardware Settings:  
Clicking this block launches:
  •    Figure  A.7 for an ``Analog'' channel. You can enter the hardware range and gain of the channel.


      
    Figure A.7: ``Analog'' Channel Hardware Settings.
    \begin{figure}
\centering
\includegraphics [width=5.1cm]{line1.ps}
\end{figure}


  • Figure A.8 for a ``Counter'' channel. The counter hardware settings are:
    • Count the number of digital pulses per sample (speed)
    • Count the accumulated number of pulses (position)
    • Measure the time between pulses (inversely proportional to speed)


      
    Figure A.8: ``Counter'' Channel Hardware Settings.
    \begin{figure}
\centering
\includegraphics [width=5.4cm]{line1.ps}
\end{figure}


Gain & Bias:  
Gain and bias correction via the formula y = G(x - B).
Square Root:  
Possible square root of the measured signal.
LP Filter: 
Low pass filter with a given cut off frequency (second order Butterworth filter).

Function Block:   
This block combines the outputs of the two channel blocks to one signal that is then used by RaPID as ``the process output''. Hitting the block launches the ``Formula Editing'' window (Figure  A.9).


  
Figure A.9: The ``Formula Editing'' window.
\begin{figure}
\centering
\includegraphics [width=9.1cm]{line1.ps}
\end{figure}


A formula to combine the signals in the two channels A and B can be selected from the top pop-up. The formulas contain:

The possible choices of formula's are:

Simple Sum:
Simple addition of two signals:

a + b

Algebraic:
The basic algebraic functions (addition, subtraction, multiplication and division) as well as limited combinations of them:

\begin{displaymath}
\frac{(a + k_1) . (b + k_2)}{c + k_3} k_4 + k_5 d + k_6 \end{displaymath}

Summation:
Summation of signals and multiplication:

(k1 a + k2 b + k3 c + k4) . (k5 d + k6)

Polynomial:
A third order polynomial equation:

\begin{displaymath}
k_4 x^3 + k_3 x^2 + k_2 x + k_1 \quad \mbox{with} \quad
 x = \frac{a b + k_5}{c + k_6} + d \end{displaymath}

Exponential:
General purpose exponential (power) equation. An important use of the exponential equation is the calculation of flow values.

\begin{displaymath}
k_5 c + k_6 \left[ k_1 a + k_2 \right]^{(k_3 b + k_4)} + d \end{displaymath}

Logarithmic:
Logarithmic law (base 2 logarithm):

\begin{displaymath}
k_5 \log_2 \left[ \frac{(a + k_1) (b + k_2)}{c + k_3} k_4 
 + d \right] + k_6 \end{displaymath}

Linear Gas Flow:
Linear pressure and temperature compensated gas flow equation to compute the mass flow of a gas:

\begin{displaymath}
k_1 a . \left[ k_3 \frac{b-k_4}{c+k_5} + k_6 \right] \end{displaymath}

Square Root Gas Flow:
Square root pressure and temperature compensated gas flow equation to compute the mass flow of a gas:

\begin{displaymath}
k_1 \left[ 1 - k_2 \frac{a}{b} \right] . \sqrt{ a \left[ k_3 \frac{b-k_4}{c+k_5} + k_6 \right] } \end{displaymath}

A.1.4 Controller Parameters    

The controller editing window and its parameters for input output boards are exactly the same as for the general controller of Chapter 6 (Figure 6.13).



Peter Van Overschee
1/21/1998