Subsections
Available in Real Time mode. The controller formula's are the
same as the general controller formula's of Section
6.2.1.
Figure A.1:
Real-time input-output board hardware template.
![\begin{figure}
\centering
\includegraphics [width=11cm]{line1.ps}
\end{figure}](img21.gif) |
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.
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}](img13.gif) |
- 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:
- If the process input type is ``Analog'', the ``Hardware''
block allows you to select the range of the process input (Figure
A.3).
Figure A.3:
``Analog'' Hardware Specific Process
Input Configuration.
![\begin{figure}
\centering
\includegraphics [width=5cm]{line1.ps}
\end{figure}](img103.gif) |
- If the process
input type is ``PWM'', the ``Hardware'' block allows you to select
the base frequency of the PWM at the process input (Figure
A.4).
Figure A.4:
``PWM'' Hardware Specific Process Input
Configuration.
![\begin{figure}
\centering
\includegraphics [width=5cm]{line1.ps}
\end{figure}](img103.gif) |
- Input Type:
- The type of the process input, which could be
``Analog'' or ``PWM''.
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}](img104.gif) |
- 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}](img105.gif) |
- 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}](img93.gif) |
- 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}](img55.gif) |
- 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}](img106.gif) |
A formula to combine the signals in the two channels A and B
can be selected from the top pop-up. The formulas contain:
- four signals: a,b,c and d. Through the square radio
button matrix in the bottom left corner of Figure
A.9 these signals can be chosen to be either
equal to Channel A, to Channel B, to zero or to one. For instance
for the selection of Figure A.9, signal a
equals Channel A, signal b equals Channel B and signals c and
d equal zero.
- six constants: k1 through k6 which can be filled out as
needed.
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:

- Summation:
- Summation of signals and multiplication:
(k1 a + k2 b + k3 c + k4) . (k5 d + k6)
- Polynomial:
- A third order polynomial equation:

- 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}](img109.gif)
- 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}](img110.gif)
- 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}](img111.gif)
- 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}](img112.gif)
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