1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 2K.1beta (1.48)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Introduction</TITLE>
<META NAME="description" CONTENT="Introduction">
<META NAME="keywords" CONTENT="rtic">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="rtic.css">
<LINK REL="next" HREF="node21.html">
<LINK REL="previous" HREF="node19.html">
<LINK REL="up" HREF="node19.html">
<LINK REL="next" HREF="node21.html">
</HEAD>
<BODY bgcolor="white">
<!--Navigation Panel-->
<A NAME="tex2html347"
HREF="node21.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="/usr/share/latex2html/icons/next.png"></A>
<A NAME="tex2html345"
HREF="node19.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="/usr/share/latex2html/icons/up.png"></A>
<A NAME="tex2html339"
HREF="node19.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="/usr/share/latex2html/icons/prev.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html348"
HREF="node21.html">The Available Tokens</A>
<B> Up:</B> <A NAME="tex2html346"
HREF="node19.html">The Lexical GUI builder</A>
<B> Previous:</B> <A NAME="tex2html340"
HREF="node19.html">The Lexical GUI builder</A>
<BR>
<BR>
<!--End of Navigation Panel-->
<H1><A NAME="SECTION00310000000000000000">
Introduction</A>
</H1>
<P>
The user must supply a file by the name of <TT>user_GUI.par</TT> that
resides in the <TT>user</TT> directory under the RTiC-Lab source
tree. This pure ASCII file has several roles:
<P>
<OL>
<LI>allows the user to create custom-made
graphical user interfaces through which the user can update parameters
in real time for the user's controller, defined in the file <TT>user_controller.c</TT>. The actual window that is affected by this
script file can be found under the ``Options'' window, on the
``Controller'' tab, and ``Open''.
</LI>
<LI>allows the user to override <TT>xrtic</TT> defaults
</LI>
<LI>tells <TT>rtic</TT> how many inputs, how many outputs, and how many data points will be handled for the given control application
</LI>
</OL>
<P>
Each of these tokens associated with a user's parameter is identified
via a <I>unique</I> identifier constant. Examples of this are shown
in the Examples section, Section
<A HREF="node36.html#PAR_Examples">3.3</A>.
<P>
For example, in this file, the user may specify that a ``slider''
token (a widget which looks like a linear resistor) will be linked to
the parameter with ID of ``3'', which is to be used in the real time
tasks. So, if the user moves the slider bar to a value of ``15.2'',
the real time parameter with the unique ID of ``3'' will receive the
value of ``15.2''. Parameters in the user's controller may then be
updated by the use the macro
``GET_SCALAR_PARAMETER(ID)''. So, from the previous slider
example, we can update the value of a derivative gain in the embedded
controller code by the following piece of code:
<P><PRE>
/* get the value of the derivative gain */
Td = GET_SCALAR_PARAMETER(3);
</PRE>
<P>
The next section describes the available tokens.
<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html347"
HREF="node21.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="/usr/share/latex2html/icons/next.png"></A>
<A NAME="tex2html345"
HREF="node19.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="/usr/share/latex2html/icons/up.png"></A>
<A NAME="tex2html339"
HREF="node19.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="/usr/share/latex2html/icons/prev.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html348"
HREF="node21.html">The Available Tokens</A>
<B> Up:</B> <A NAME="tex2html346"
HREF="node19.html">The Lexical GUI builder</A>
<B> Previous:</B> <A NAME="tex2html340"
HREF="node19.html">The Lexical GUI builder</A>
<!--End of Navigation Panel-->
<ADDRESS>
Michael Barabanov
2001-06-19
</ADDRESS>
</BODY>
</HTML>
|