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
|
<!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>Simple Example</TITLE>
<META NAME="description" CONTENT="Simple Example">
<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="node39.html">
<LINK REL="previous" HREF="node37.html">
<LINK REL="up" HREF="node36.html">
<LINK REL="next" HREF="node39.html">
</HEAD>
<BODY bgcolor="white">
<!--Navigation Panel-->
<A NAME="tex2html542"
HREF="node39.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="/usr/share/latex2html/icons/next.png"></A>
<A NAME="tex2html540"
HREF="node36.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="/usr/share/latex2html/icons/up.png"></A>
<A NAME="tex2html534"
HREF="node37.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="tex2html543"
HREF="node39.html">Difficult Example</A>
<B> Up:</B> <A NAME="tex2html541"
HREF="node36.html">Examples</A>
<B> Previous:</B> <A NAME="tex2html535"
HREF="node37.html">Simplest Example</A>
<BR>
<BR>
<!--End of Navigation Panel-->
<H2><A NAME="SECTION00332000000000000000">
Simple Example</A>
</H2>
<P>
This example creates a second column with parameters. There is a
vertical line separating both columns. There are two inputs, two
outputs, and four data points per cycle are transferred to the
reactive tasks from the embedded tasks.
<P>
<P></P>
<DIV ALIGN="CENTER"><A NAME="1606"></A>
<TABLE>
<CAPTION ALIGN="BOTTOM"><STRONG>Figure 3.2:</STRONG>
Simple example. Two columns are displayed with all labeled
spin buttons</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<IMG
WIDTH="412" HEIGHT="452" ALIGN="BOTTOM" BORDER="0"
SRC="img48.png"
ALT="\includegraphics[]{Figures/simple.eps}">
</DIV></TD></TR>
</TABLE>
</DIV><P></P>
<P>
<PRE>
# Example project. This places two columns on the screen
# first lets put in the required tokens
inputs 2
outputs 2
data_size 4
# now let's define the two columns
start_col h
label 'Radial Controller'
spin_with_label 'Kp',-100,100,10,0 # Proportional Gain
spin_with_label 'Kd',-200,200,20,1 # Derivative Gain
spin_with_label 'Wn',0,2000,100,2 # Low pass corner frequency
spin_with_label 'DL', 0,20,3,3 # Derivative Limit
spin_with_label 'AW', 0, 100, 5, 4 # Integrator anti-windup
end_col
v_separator
start_col h
label 'Axial Controller'
spin_with_label 'Kp',-100,100,10,5 # Proportional Gain
spin_with_label 'Kd',-200,200,20,6 # Derivative Gain
spin_with_label 'Wn',0,2000,100,7 # Low pass corner frequency
spin_with_label 'DL', 0,20,3,8 # Derivative Limit
spin_with_label 'AW', 0, 100, 5, 9 # Integrator anti-windup
end_col
# this is another comment with lots of #'s, *'s, @$%@$&^#%&, etc.
</PRE>
<P>
<BR><HR>
<ADDRESS>
Michael Barabanov
2001-06-19
</ADDRESS>
</BODY>
</HTML>
|